Skip to content

Abhishek-DS-ML-Gupta/Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏎️ Car Racing Game

A fun and addictive 2D Car Racing Game built using Pygame.
Dodge incoming cars, rack up points, and test your reflexes in this simple yet engaging arcade-style game.


📸 Screenshots

(Add your screenshots in a folder named screenshots/ and update the paths below)

Gameplay Screenshot


🎮 Features

  • 🚗 Smooth player car movement using arrow keys
  • 🎵 Sound effects for crashes and background music
  • 🎲 Random enemy cars appearing dynamically
  • 🏆 Score tracking to challenge yourself
  • ⚡ Lightweight and beginner-friendly

🛠️ Installation Guide

1. Clone the Repository

git clone https://github.com/Abhishek-DS-ML-Gupta/Game.git
cd Game

2. (Optional) Create a Virtual Environment

Copy code
python -m venv venv

Activate it

venv\Scripts\activate # On Windows source venv/bin/activate # On Linux/Mac

3. Install Dependencies

Make sure you have Python 3.8+ installed.

Copy code
pip install -r requirements.txt

4. Run the Game

bash Copy code python main.py ⌨️ Controls ← Left Arrow → Move car left

→ Right Arrow → Move car right

Esc → Quit the game

📂 Project Structure

Copy code
Game/
│── cars/             # Car sprites (player and enemy cars)
│── fonts/            # Custom font files
│── sounds/           # Sound effects (crash, background music, etc.)
│── main.py           # Main game logic
│── requirements.txt  # Dependencies
│── README.md         # Project documentation
📦 Dependencies
Python 3.8 or higher

👨‍💻 Author

Abhishek Gupta 📧 [email protected] 🔗 GitHub Profile

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages