pyBegin / projects / car-game
🎮

Car Game

A 2D car-dodging arcade game built with Pygame. Steer your car to avoid oncoming traffic, with sound effects, background music, and a high-score tr…

458 lines🖥 Desktop only

Car Game

A 2D car-dodging arcade game built with Pygame. Steer your car to avoid oncoming traffic, with sound effects, background music, and a high-score tracker.

Example

  1. Run python Game.py. A Pygame window opens showing a road with your car at the bottom and oncoming vehicles moving down the screen. Background music begins playing.
  2. Press the left and right arrow keys to steer your car and avoid the oncoming traffic.
  3. Each vehicle you successfully dodge increases your score. The current score is displayed on screen.
  4. If your car collides with an oncoming vehicle the game ends, and the high score is updated if you beat it.

How to run on localhost

pip install pygame
python Game.py

Dependencies