A simple racing game, arrow keys to change the car's direction.
The car cannot be stopped, like in Snake, and it explodes even if you slightly brush up against the wall.
You have to do 3 laps without crashing to win, post your times below!
If you find any bugs, then please let me know.
Changes in 1.1:
- Updated graphics slightly
- The number 3 on the lap indicator now turns green upon winning
- Added another row of one-way blocks to the finish line
Known issues for 1.1:
- Code is still a mess, 1.2 will likely prompt a full rewrite of the code if I ever make it
Known issues for 1.0:
- The number 3 on the lap indicator does not turn green when you finish the race
- You can reverse out of the finish line and go back onto it as long as you have not crossed onto the one-way blocks, and it still counts as a lap
This is surprisingly hard, but fun!
I’m not sure when it happened, but after a while I noticed it said my best time was 1029 seconds, and I hadn’t (and still haven’t) beat the game. I just took a quick look at the code and saw that the best time is set to the integer limit, then being divided by 30 when displayed. I’m guessing this is just a test thing you forgot to remove?
Edit: I guess this is actually just setting the time absurdly high if you haven’t beat the game yet. Maybe you could add some other way of telling if the person has beat the game? Or set it as a value externally and at first set it to a string that says “not completed” or something.
Also using the finish line bug I did it in 49 seconds, you could do a check to see if they have crossed over a one way block to count the next lap.
Good game, @tredI9100. Gold star work.
It is hard enough to complete one circuit let alone multiple. I would have an onboard timer that starts at zero and the object of the game is to make a single circuit in the minimal amount of time.
Optional to have other circuit tracks, perhaps some easier and harder than the current model.
This feels like the combination of Flappy Bird and Kerbal Space Program turned into a 2D racer, and I couldn't stop playing it until I got this. Gold star.
For players finding it impossible to even get around the first bend,
I still often wipe out on the first corner, but once I get around the first lap, it feels like I get in zone and can do no wrong... sometimes.
Also, neat use of the map tiles to include the version number and your avatar.
Very good game @tredI9100! I even took the liberty of improving it a bit. The game now saves the best time in persistent data and I changed the structure of your code a bit, but overall, the game works the same.
It may not look like it, but I spent several hours on it.
hope you enjoy!
Use it as you'd like. And I'd like really like if you'd at least credit me.
[Please log in to post a comment]