Java-Gaming.org    
Featured games (78)
games approved by the League of Dukes
Games in Showcase (429)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (468)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  Drift Driver 4K  (Read 4710 times)
0 Members and 1 Guest are viewing this topic.
Offline Ranger
« Posted 2011-11-19 06:05:16 »



http://www.java4k.com/index.php?action=games&method=view&gid=354

Playing around with some car physics for a drift racing game entry.

Please give it a try and any feedback would be great!

Cheers.
Offline Mads

JGO Ninja


Medals: 24
Projects: 3


One for all!


« Reply #1 - Posted 2011-11-19 06:14:01 »

This is incredibly hard  Cheesy I cant even take one good turn

Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #2 - Posted 2011-11-19 06:43:02 »

Holy crap that was hard! I'm amazed how you did all this in just 4K! One bug I found: make the "GAMEOVER" sign disappear when restarting Wink

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Ranger
« Reply #3 - Posted 2011-11-19 07:26:21 »

"GAME OVER" bug fixed.  Smiley

Will looking into making it easier to drive.  I assume the problem was the car would spin too easily?  Might make it a 4WD car, so you'll be able to power out of the drift, instead of having to lift off the accelerator.
Offline Ranger
« Reply #4 - Posted 2011-11-19 10:59:25 »

There are now 5 levels!  Grin

Please give it another try.  Do the level difficulties seem right?  Too easy / hard?  Does the difficultly jump too much between certain levels?

Can anyone make it to the 5th level?  Can anyone complete the 5th level? (I can't!)

http://www.java4k.com/index.php?action=games&method=view&gid=354

Thanks again!   Smiley
Offline Damocles
« Reply #5 - Posted 2011-11-19 14:54:55 »

Is fun playing. Especially to see the old tireburn.

The acceleration could be faster though.

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #6 - Posted 2011-11-19 15:57:40 »

I am not sure why, but on level two, whenever I turned, it would just keep turning until I let go fo the accelerator, and so I got some wierd circles  that spiraled off into the grass.

great game other than that though Smiley
Offline Mercenary

Innocent Bystander





« Reply #7 - Posted 2011-11-19 16:06:07 »

Good job on this, got to level 3.
Offline Ranger
« Reply #8 - Posted 2011-11-19 16:07:39 »

I am not sure why, but on level two, whenever I turned, it would just keep turning until I let go fo the accelerator, and so I got some wierd circles  that spiraled off into the grass.

great game other than that though Smiley

Thanks h3ckboy  Smiley  When you released the turn control, did the wheels straighten up?  If they did, then everything is working correctly, as when the car begins to drift, you need to steer into the skid to keep control (ie. the opposite direction).  If the wheels didn't straighten up, then I have some control issues that I need to fix.   Roll Eyes
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #9 - Posted 2011-11-19 17:52:37 »

I dunno about the wheels, but I do know that I did try to steer the opposite directiona nd it didnt change
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline pjt33
« Reply #10 - Posted 2011-11-19 21:18:05 »

Level 2 is already at the point that it's easy to end up facing the wrong way and then virtually impossible to turn round without oversteering. I made it to level 3 and gave up because I just couldn't control it at all.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 613
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #11 - Posted 2011-11-19 21:22:41 »

1  
2  
3  
4  
java.lang.NullPointerException
   at sun.plugin.util.AnimationPanel2.doPaint(Unknown Source)
   at sun.plugin.util.AnimationPanel2.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #12 - Posted 2011-11-20 01:40:09 »

Drifting becomes fun once you learn how to use it to your advantage. However, I got to Level 4 and gave up because it was seemed virtually impossible to beat. The ground felt like an ice skating rink Tongue

Offline theagentd
« Reply #13 - Posted 2011-11-20 02:42:37 »

Level 4 was impossible.

Myomyomyo.
Offline ReBirth
« Reply #14 - Posted 2011-11-20 04:52:35 »

Can't pass lvl 3, too dificult Cheesy

Nice control and camera adjustment. However there's bug. If you play it right you can just make a circle continuously to create big amount score. Unfortunately it's happened on my lvl 2 and miracle doesnt show up again.

Offline aeroc

Senior Newbie


Projects: 1



« Reply #15 - Posted 2011-11-20 20:20:03 »

I made it to level 3 on the first try, the difficulty doesn't seem too bad until level 4. On level 4, it feels like the car needs more front grip.
Offline Mads

JGO Ninja


Medals: 24
Projects: 3


One for all!


« Reply #16 - Posted 2011-11-21 06:41:02 »

Made it to level 5. At that point it becomes very hard  Tongue Not impossible though, but very hard.

Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #17 - Posted 2011-11-21 06:47:48 »

Made it to level 5. At that point it becomes very hard  Tongue Not impossible though, but very hard.
You cheated! Tongue

Offline gbeebe

Senior Member


Medals: 5
Projects: 1



« Reply #18 - Posted 2011-11-21 07:02:01 »

I got 396 on track 4 when time ran out.  My carpal tunnel started kicking in so I gave up there.  Nice game.
Offline Ranger
« Reply #19 - Posted 2011-11-21 07:08:23 »

Thanks so much for all the excellent feedback.  Smiley  I've now made many changes to address the problems:

- Cars are now much faster.
- Tires have a more grip (no more ice skating rink feel).
- Front tires no longer break traction, so pulling out of a drift is easier.
- Going on the grass now helps the car out of a drift.
- More levels (now 7).
- Able to progress through levels faster.

If you get a chance, I'd really appreciate hearing if the changes make the game better, and what level people can now get up to.

http://www.java4k.com/index.php?action=games&method=view&gid=354

Thanks again!
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #20 - Posted 2011-11-21 10:44:09 »

Really nice, I zipped through 1-3, 4 took a couple of tries, and after numerous tries and being extremely close to winning, I gave up on level 5 Sad

Offline ReBirth
« Reply #21 - Posted 2011-11-21 12:20:20 »

Yay with new update I can passed lv4. Gave up on lv5.

I wonder how you calculated "drift"

Offline Ranger
« Reply #22 - Posted 2011-11-22 02:25:49 »

I wonder how you calculated "drift"

Drift is the angle of the rear wheels compared to the direction of travel.

The first level you only need PI/16 to get "drift", however, as you go through the levels, you need a greater angle, by level 5 you need a PI/9 angle.  Oh, and there is also a check to make sure you are going fast enough too.  Smiley
Offline theagentd
« Reply #23 - Posted 2011-11-22 11:13:11 »

Made it to the 5th level I think. It was the one with a 1500 score limit.

Myomyomyo.
Offline ReBirth
« Reply #24 - Posted 2011-11-22 13:55:41 »

I wonder how you calculated "drift"

Drift is the angle of the rear wheels compared to the direction of travel.

The first level you only need PI/16 to get "drift", however, as you go through the levels, you need a greater angle, by level 5 you need a PI/9 angle.  Oh, and there is also a check to make sure you are going fast enough too.  Smiley
thanks for the explanation Pointing

Offline Ranger
« Reply #25 - Posted 2011-11-23 16:55:59 »

Made it to the 5th level I think. It was the one with a 1500 score limit.

Actually, that was the 6th level!  Smiley

Made some more changes:
- There are now 10 levels.
- The track width changes between levels.
- Level 7 is now a snow track.

I think the transitioning between levels is now fairly smooth.  Please let me know if you get to a level and feel like it was too much of a jump in difficultly.

Any other comments/suggestions are also most welcome.  Smiley

http://www.java4k.com/index.php?action=games&method=view&gid=354

Many thanks again!
Offline theagentd
« Reply #26 - Posted 2011-11-23 17:47:18 »

Got to the last level, but immediately gave up. Took me very many tries to beat level 9, but I eventually did it. The snow level was great. It was fun and awesome, but not very challenging, which was a nice change of pace. The only 2 things that really bothers me with is for one that the car's abilities changes each level. It makes all the things you learned at the last level useless as they don't work anymore. The second thing was most apparent on the last level: The car doesn't run straight. On the last level, just holding the up arrow key makes your car make a sharp turn to the left. It was very difficult just getting the first turn right due to this, and considering the insane degree of drift needed for points, combined with the high speed of the car, the soap slippery road and the 1000 point requirement, it was pretty much impossible for me to do enough flawless drifts in a row for me, so I just gave up.

Very nice game though, especially in 4K!

Myomyomyo.
Offline Ranger
« Reply #27 - Posted 2011-11-24 00:30:59 »

Got to the last level, but immediately gave up. Took me very many tries to beat level 9, but I eventually did it. The snow level was great. It was fun and awesome, but not very challenging, which was a nice change of pace. The only 2 things that really bothers me with is for one that the car's abilities changes each level. It makes all the things you learned at the last level useless as they don't work anymore. The second thing was most apparent on the last level: The car doesn't run straight. On the last level, just holding the up arrow key makes your car make a sharp turn to the left. It was very difficult just getting the first turn right due to this, and considering the insane degree of drift needed for points, combined with the high speed of the car, the soap slippery road and the 1000 point requirement, it was pretty much impossible for me to do enough flawless drifts in a row for me, so I just gave up.

Very nice game though, especially in 4K!

After reviewing the last level, I agree.  I've made the car too powerful with not enough traction.  It's not fun, it's just annoying how it snaps into a spin so easily.

I also see your point that you need to relearn on each level.  I need the user to gradually work up from a car that doesn't drift much, to a car that does.  However, when the user does get to that car (probably the black car on level 6), I think I need to stop modifying the car, and only modify the track, points, and time limit to make it harder.

Excellent feedback!  Thank you!  It's funny how when you program and play the game so many times, you loose track of what you think works and what doesn't.  Smiley
Offline Ranger
« Reply #28 - Posted 2011-11-24 13:28:26 »

All issues should now be fixed:

- Now has 12 levels.
- No more impossible to control cars.  Once you get to level 6, the cars handling doesn't change much.
- Now has some dirt tracks (as well as asphalt and snow).

http://www.java4k.com/index.php?action=games&method=view&gid=354

As always, comments most welcome.

Thanks!  Smiley
Offline Ranger
« Reply #29 - Posted 2011-11-25 12:21:05 »

Just for fun, I made an HTML5 version!  Grin

I stuck my 4K code into a GWT project, fixed up the game loop to be single threaded, changed the gfx calls to use GWT, and boom, GWT made me an HTML5 version!  Shocked

The only other difference is there is no dashed line support in HTML5, so I replaced the centre line with some track texture (as I wasn't worrying about the 4k limit).  The actual Javascript compiled out to only 50K, so that's not too bad.

You can see it in action here http://www.brasurf.com.au/DriftDriver/

This, my friends, I think is the future!  (well, for small online games anyway).
Pages: [1] 2
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

theagentd (6 views)
2014-04-24 23:00:44

xsi3rr4x (83 views)
2014-04-15 18:08:23

BurntPizza (75 views)
2014-04-15 03:46:01

UprightPath (86 views)
2014-04-14 17:39:50

UprightPath (69 views)
2014-04-14 17:35:47

Porlus (86 views)
2014-04-14 15:48:38

tom_mai78101 (109 views)
2014-04-10 04:04:31

BurntPizza (169 views)
2014-04-08 23:06:04

tom_mai78101 (265 views)
2014-04-05 13:34:39

trollwarrior1 (216 views)
2014-04-04 12:06:45
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!