๐๏ธ Car Racing Game
A simple 2D Car Racing Game developed using Python and Pygame. The goal is to dodge incoming enemy cars and survive as long as possible while your score increases.
- Player-controlled car using arrow keys
- Enemy cars with increasing speed
- Score counter
- Collision detection & game over screen
- Background music and crash sound effects (optional)
- Smooth graphics and real-time updates
(Add a screenshot or GIF here)
You can also upload a gameplay video to YouTube and link it here.
- Python 3
- Pygame Library
-
Install Python
Download from https://www.python.org -
Install Pygame
Open terminal/command prompt and run:pip install pygame
Clone this repository
git clone https://github.com/Farhanulhaq19/Car-Racing-Game cd Car-Racing-Game Run the game
python main.py
๐ Folder Structure
Car-Racing-Game/
โโโ data/
โ โโโ images/ # PNG or game graphics
โ โโโ jpeg/ # JPEG format images
โ โโโ audio/ # Sound effects and music
โโโ Asphalt 8.py # Main game file
โโโ README.md # Project documentation
โโโ Highscore.txt # Python dependenciestxt
๐ง Learning Objectives Practice game development with Python
Use of event loops and collision logic
Asset management (images, sounds)
Real-time rendering with Pygame
๐ก Future Improvements Add multiple levels or difficulty modes
Implement car upgrades or power-ups
Create a leaderboard or save high scores
Add menus and pause functionality
๐ License This project is open-source and available under the MIT License.
๐ Credits Developed by Farhan ul Haq
Pygame documentation: https://www.pygame.org/docs/