Top Down Racing Game Applet

I was cutting lawn more than actually racing… :-[
(also got lapped about 5 times)

lol

Just finished putting in levels! Yay! :slight_smile:

You can jump to levels when you discover the unlock codes. Here is an example of the level 2 unlock code:

http://home.exetel.com.au/craigmitchell/LevelUnlock.jpg

http://www.brasurf.com.au/CraigsRace/

I kept all the fast times and put them on the final level.

Again, all comments are much appreciated!

Cheers,
Craig.

Not anymore!!! Just did a 2:00.73!!! Maaan…I was so nervous of messing up the last lap (like Cam and Andy did). I’m still shaking!!!

PS: To jump to Level 7 where the fast times are, enter the unlock code: 7000

Just tried again… managed to finish a race this time… ;D

Sticko,
How are you saving the routes of the top 10 players to replay/race against them?
(It must be more complex than saving an array of points cause I’ve seen then skid off course and stall like I do… hehe)

Good game though.

One suggestion - make the cars a bit bigger (double their current size?)

2:00.86. Not quite top, but at least I managed not to mess up the last lap this time. :smiley:

I love that you can play against other player’s times. More games could do with this.

Andy.

Nope. You’re spot on. These are the attributes on my data class:
private char elapsedFrames;
private short x;
private short y;
private short direction;
private boolean firingRockets;

I also do some compression, so when the race is over, I make sure there are no more then 1000 points. Eg: If there are 3000 points recorded, I’ll create another array taking every third point and save the fact that I took every 3rd point. Then on loading, I workout the missing points by doing stuff like this: int x = ((ph2.getX() - ph1.getX()) * loop / compressionNum) + ph1.getX();

I also have smarts in there so if you’ve stopped, it doesn’t keep recording points.

Oh, and finally, I also zip the data before sending too. Doing this reduces the size to around 10K per replay.

Yea, I’m going to try to do zooming, so when you’re going slow, it’s zoomed right in, but when yor flying along, it’s zoomed right out and you can see a long way ahead on the track. …I hope my maths skills are up to the challenge! ;D

I’ve been away for a few days, but don’t worry I beat all your times again :slight_smile: My level 7 time broke the 2min barrier. runs into kitchen for the some ice to jam fingers in

I don’t quite understand the level system, what’s stopping me from recording a sub 2min time at level 1?

Keeping with your configuration of 8 top laps per level and 7 levels, I would have implemented levels by keeping the data of the top 56 laps. The player would start their first race in the level 7 bracket against cars 49-56. Their recorded time for that race would slot into the overall 56 best laps (if the times good enough) and their next race would be against the bracket of 8 times that their last time slotted into. i.e I recorded a 2:02 in my first race, so the next race I should have is say in level 6 against cars 9-16.

But anyway its still a great game, as is proof by my repeated returns to reclaim top honours.

Unbelievable!!! I didn’t think sub 2 mins was possible!!! :o

Times posted on lower levels will only last for a certain amount of time. Level 1 is only 1 hour, level 3 is 1 week. Level 7 is permanent. If the time is not permanent, the time will be deleted if it is the oldest time and all the grid positions have been filled. Thus, good times will fall off the top scores. When enough people play it, theoretically, it will get harder and harder as you go up levels.

I thought about doing what you suggested, however, that would mean cars would be starting on top of each other on the grid…but maybe that would be better as I’m not sure how many people will have the patents to work through all the levels?

Multiple tracks are coming soon, so ice up those fingers! ;D

Hi all,

Just coded in zooming (like GTA had), however, I didn’t make it automatic, as it felt funny and hard to drive. So I made it manual with +,- keys. Let me know if you find any issues with it. …you can now zoom out and watch the whole race to see peoples pit stop and boost strategies! ;D

http://home.exetel.com.au/craigmitchell/zoomed.jpg

http://www.brasurf.com.au/CraigsRace/

Cheers,
Craig.

I played the game twice today, the first time the zooming was tied into the speed of my car which I must say was not helping me with the lap times. The second time I played, you must have made another change to the game as the zooming was no longer tied to the my car speed, as I could freely zoom in and out to a level I felt comfortable with. Also I noticed the boost key has changed. I was having problems with the spacebar locking up the input before, so I like the change to the ctrl key.

I was getting worried that Cam’s 1:59:94, a mere 0:0:01s faster than mine previous, was unbeatable. Thankfully my dominance has been restored with a 1:59:73. I wonder if a sub 1:59 is possible?

Stephen

Hey!

I’m learning (but am still a whole minute after you guys).
And I’m starting to really like this game.

Questions, what is the grand plan? Tournament with unlocking car upgrades? Autogenerated maps? Chased by cops?

A suggestion with the zooming. Maybe the game can zoom out some when you boost. But not very much. The it slowly zooms back in again.

Thanks Markus. You’re doing well! Keep it up! …I can no longer get my name on the high score table on the final level, and I programmed the darn game! :o

Grand plan…not really that grand at the moment. I plan to finish up the track editor, and let people upload their own tracks. Also have an F1 car. Anything beyond that will depend on how much spare time I have.

Good call on the zooming. :slight_smile: I’ll put it in just for boosting and see how people like it.

I am stunned as to how fast you can drive this game! You nail pretty much every corner…are you a robot? ;D

I read a post on this site telling me that there are keyboard hardware issues with arrow keys and the space bar. Basically, up+left+space doesn’t work. Now I think about it, I can’t think of any games that use arrow keys and the space bar. Whoever designed keyboards wasn’t thinking about gamers!

[quote=“Sticko,post:33,topic:31065”]
z4rch! ;D

Cool game! Except I noticed you had the exact same problem I did. If you press forward and left (up arrow and left arrow) and at the same try to thrust (space bar), it doesn’t work. I’m pretty sure it’s a hardware limitation, and the only thing you can do is pick different key combos. ::slight_smile:

Done. And I like it! ;D Thoughts?

[quote=“Sticko,post:35,topic:31065”]
Works fine for me (I tested before posting) - maybe your machine has a keyboard driver problem?
Just tried your game but now boost is CTRL - up+left+CTRL works OK though!

You might want to check out the comment from oNyx (2nd comment) in http://www.java-gaming.org/forums/index.php?topic=17883.0 Maybe you have an good keyboard. Mine is just the one that comes with a Dell laptop.

Hi all,

Just finished the first attempt at a track selector and have created a new track! :slight_smile: …I might have gotten a bit carried away when creating this one! ;D

http://home.exetel.com.au/craigmitchell/newtrack.jpg

http://www.brasurf.com.au/CraigsRace/

Press C to change tracks.

Please let me know what you think and if you find any problems.

Cheers,
Craig.

Nice! I was just going to request some more tracks.

And I finally beat Stephen’s time on track 1! ;D It’s surprising how much you can improve with practice. But I suspect that sub 1:59 is out of reach, at least for me.

I am still not sure about the zooming during a race - it just made me a little vertiginous - but it works well at the start when you zoom in from seeing the whole track.