Car Racing Game
Description 📃
Car Racing Game is an exhilarating 2D racing game where players control a red car and compete against a computer-controlled green car. The game features multiple levels with increasing difficulty, realistic collision detection, and smooth controls.
Functionalities 🎮
- Player and Computer Cars: Control the red car and race against the green computer car.
- Levels and Progression: Complete levels by reaching the finish line before the computer car. Each level offers more challenges and obstacles.
- Collision Detection: Realistic collision detection with track borders and other cars.
- Speed Control: Adjust the speed of your car using the arrow keys.
- Direction Control: Rotate your car left or right to navigate through the track.
- Game Over and Reset: The game ends if the player fails to beat the computer car. Reset the game to try again.
How to Play? 🕹️
- Start the Game: Launch the game to begin.
Controls:
- Use the left and right arrow keys to rotate the car.
- Use the up arrow key to accelerate forward.
- Use the down arrow key to slow down or reverse.
- Navigate the Track: Avoid collisions with track borders and other cars.
- Complete Levels: Reach the finish line before the computer car to advance to the next level.
- Game Over: If the computer car reaches the finish line first, it’s game over. Reset the game to try again.
Installation and Running the Game 🚀
Prerequisites
- Python 3.x
- Pygame library
Steps
- Clone the repository:
git clone https://github.com/shellyverma/game.git
- Navigate to the game directory:
- Install the dependencies (assuming you have Python and pip installed):
- Run the game:
Screenshots 📸
