REDLINE is a top down infinite driving game built entirely with vanilla JavaScript and HTML5 Canvas. You play as a driver on a procedurally generated road that never ends. The goal is simple — survive as long as you can while dodging oncoming traf…
REDLINE is a top down infinite driving game built entirely with vanilla JavaScript and HTML5 Canvas. You play as a driver on a procedurally generated road that never ends. The goal is simple — survive as long as you can while dodging oncoming traffic, avoiding road obstacles and managing your fuel.
Fuel is a constant pressure. Your tank drains as you drive and drains faster if you go offroad. Gas stations spawn along the road at increasing intervals — pull into one to refill. Time your refuel right and keep your tank below 30% before hitting the station to earn a bonus score on top.
You have 3 hearts. Lose them all from collisions or going offroad too long and it is game over. Your score is tracked in real time based on your speed and saved locally so you always have a best to beat.
I have used AI for SAT Testing and Normalizing the Turn angle and Speed. And for debugging npc speed checks and minor issue.