My first arcade strait racer 3d (thanks to MOT's code snippet instant 3d+)
enjoy!
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
@BGelais I intend the comments lower down for those people finding this game a little too tricky (as I do). Your game looks good and plays decently within its design choice as a linear racer etc, but I'm not a frequent player of racing games and perhaps because of this I crash very quickly now it has been increased to 60fps.
I have poked into the code briefly - it's very readable and easy to work with; so thank you for that! - and below I provide two tweaks to affect the feel of the game should anyone want them (note to others - BGelais' cart is under the license: CC4-BY-NC-SA) or if you wanted to implement them yourself (but perhaps in a better-than-I've-written-them, adjustable-in-game way, such as easy mode (perhaps with less points for passing cars), and normal mode).
By the way @BGelais I think you have a typo on your menu screen, where it reads "crivals".
Thank you for the game. :)
As I always write at length, I've hidden some of the longer sections.
@Vinnyc11 a quick glance at the code makes their movement look random.
Rival's code and a tweak
Player's code
What I find difficult is the responsiveness of the car speed.
Analysis of player speed
Perhaps I'm over-reacting in how long I press the decelerate button, whereas perhaps frequent players of racing games have a far finer gradation of control that their fingers exert. I'm not a frequent player of racing games. Anyway, for anyone looking for more gradation of control at higher speeds ...
Tweak to player's code
Disclaimer: My look into the code really was brief; it might be that other factors also contribute to either the movement of rivals or the player speed.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
fantastic look and feel to this one! your game has that nice mix of tight controls and tension that classic racers evoke.
i think scoring is bugged though (at least for me). for some reason when i am passing a bunch of cars (right about when i get to a score of 130-155) the score stops increasing. then when i finally crash, the score increases a bit for cars passing my fiery wreckage. once i start again the score starts increasing again, but only for a short while before it stops once more. maybe it is because i hug the rails so to speak? i am not sure.
other than that, i really like this one. i appreciate you sharing your game with all of us! thank you.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
@anydayhappyday Thanks a lot! Yes the scoring problem is due to the speed you pass the cars avoiding quickly this condition in the code... if someone got a better solution to fix that, welcome.
if o.y>106 and o.y<108 then if (o.spr==7) score+=20 if (o.spr==23) score+=5 if (o.spr==39) score+=10 end |
By the way, short time after I wrote this, i finally fixed the score bug!! Version 10 ;)
[Please log in to post a comment]