This is a simple car game implemented in Python using the Pygame library. The game allows you to control a car and dodge obstacles while progressing through different levels.
Before you begin, ensure you have met the following requirements:
- Python 3.x installed
- Pygame library installed (pip install pygame)
- Running the Game
To run the game, follow these steps:
- Clone this repository or download the source code.
git clone https://github.com/HarshithDR/car_game.git
- Open a terminal and navigate to the game directory.
Run the game by executing the following command:
python car_game.py
- Left Arrow: Turn left
- Right Arrow: Turn right
- A: Accelerate
- B: Brake
- ESC: Pause the game
- Avoid crashing into obstacles.
- Use the left and right arrow keys to steer the car.
- Press 'A' to accelerate and 'B' to brake.
- The game has multiple levels, and your score increases as you dodge obstacles.
- Press 'ESC' to pause the game at any time.
This game was developed as part of a programming project using Pygame. Special thanks to the Pygame community for providing a fun and educational environment for game development.
Enjoy the game!