A simple Python + Pygame arcade-style game. The player controls a red car moving left and right to avoid falling blue obstacles on the road. The game ends when the player collides with an obstacle.
-
Controls:
- Left Arrow: Move car left
- Right Arrow: Move car right
-
Rules:
- Avoid hitting the blue obstacles.
- The game runs at a steady 60 FPS for smooth gameplay.
- Collision with any obstacle ends the game.
- Python 3.7 or later
- Pygame library
You can install Pygame using:
pip install pygame- Clone or download this repository.
- Open the project folder in your terminal.
- Run the game script:
python main.pyThis project is licensed under the MIT License – feel free to use, modify, and distribute.
