This is a browser-based car racing game built using HTML, CSS, and JavaScript.
The player controls a car using arrow keys and must avoid incoming enemy cars. The road moves continuously to create a racing effect while the score increases over t…
This is a browser-based car racing game built using HTML, CSS, and JavaScript.
The player controls a car using arrow keys and must avoid incoming enemy cars. The road moves continuously to create a racing effect while the score increases over time. If the player crashes into an enemy car, the game ends and shows a game over popup with the final score.
Features:
• Smooth car movement using JavaScript
• Enemy cars spawning randomly in lanes
• Collision detection system
• Animated gradient background
• Engine sound and crash sound effects
• Game over popup with restart option
• Restart using button or Enter key
This project helped me learn about DOM manipulation, animations, event handling, and game logic in JavaScript.
Used for debugging the code and learning new concepts while developing the game.