image

🚗 Car Racing Game A simple and fun 2D car racing game built using HTML, CSS, and JavaScript. The player controls a car on a road, dodging traffic and trying to score the highest possible points.

🔗 Live Demo 👉 Click here to play https://sudheerrrrit.github.io/car-game-/

🖼️ Screenshots

image

🛠️ Technologies Used HTML5 – Structure and layout

CSS3 – Styling and animations

JavaScript – Game logic and interactions

Vanilla JS only – No frameworks

🎮 Features 🚘 Player car movement with arrow keys

🚗 Random enemy car generation

⛽ Increasing difficulty with time

💥 Collision detection

🏆 Score tracking

🔁 Game over and restart functionality

🎵 Background music and sound effects (optional)

⌨️ Controls ⬅️ Left Arrow – Move left

➡️ Right Arrow – Move right

(Add any other controls if applicable)

📁 Project Structure bash Copy Edit car-game/ │ ├── index.html # Main HTML file ├── style.css # Game styling ├── script.js # Game logic ├── assets/ # Images, audio, etc. │ ├── car.png │ ├── enemy.png │ └── crash.mp3 └── README.md 🚀 How to Run Locally bash Copy Edit git clone https://github.com/sudheerrrrit/car-game.git cd car-game

Open index.html in your browser

📜 License This project is licensed under the MIT License. Feel free to use, modify, and share it.

🙌 Author Sudheer yadav

Share this project:

Updates