Car Race is a 2D racing game developed with Pygame. The game has 2 levels and each level ends with a timeout event. Single-player distance is saved in a SQLite3 database.
Player 1: Arrow keys (accelerate/brake/steer)
Recommended (Python 3.12 with wheels):
brew install python@3.12/opt/homebrew/opt/python@3.12/bin/python3.12 -m venv .venvsource .venv/bin/activatepython -m pip install -U pippython -m pip install -r requirements.txt
If you are on Python 3.14, pip will try to build Pygame from source. You will need SDL headers:
brew install sdl2 sdl2_image sdl2_mixer sdl2_ttf pkg-configpython -m pip install -r requirements.txt
No virtualenv (system Python):
python3 -m pip install --user --break-system-packages -r requirements.txt
python main.py