Car Game banner

Car Game

3 devlogs
4h 30m 53s

This is a browser-based car 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 while the score increases over time. If the player crashes into a…

This is a browser-based car 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 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.

Demo Repository

Loading README...

manojk902007

Shipped this project!

Hours: 4.49
Cookies: 🍪 11
Multiplier: 2.39 cookies/hr

I built a Car Racing Game using HTML, CSS, and JavaScript. The hardest part was implementing smooth controls and collision detection, but I solved it using JavaScript game logic. Really happy with how the gameplay turned out

manojk902007

enhance README and implement speed control feature in game

Attachment
0
manojk902007

add README.md with game details, features, controls, and instructions

Attachment
0
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