Car Racing Game banner

Car Racing Game

1 devlog
3h 14m 7s

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.

This project uses AI

Used for debugging the code and learning new concepts while developing the game.

manojk902007

Worked on developing a browser-based Car Racing Game using HTML, CSS, and JavaScript. Implemented player controls using arrow keys and created enemy cars that spawn randomly in different lanes. Added road animation to simulate movement and implemented collision detection to end the game when the player crashes into an enemy car.

Improved the UI by adding a colorful animated gradient background and a game over popup with restart functionality. Integrated sound effects such as engine sound during gameplay and crash sound on collision. Also debugged several issues related to collision sensitivity, sound stopping after crash, and proper alignment of game elements.

Attachment
Attachment
0