A Classic remake of the arcade game Frogger built with Python and Pygame-CE
Guide your frog safely across busy roads with cars and rivers with floating logs. Try to reach the finish line at the top to advance to the next level with increased difficulty.
-
Multiple randomly generated levels
-
Car lanes with varying speeds and directions
-
Water lanes with moving logs
-
Score tracking and a high score system
-
Sound effects and background music (all homemade)
-
Multiple frog lives
-
Unique handmade sprites
-
Car speed increases with each level completed, and random generation ensures unique layouts every level
| Key (on arcade) | Key (on computer) | Action |
|---|---|---|
↑ |
w |
Move Up |
↓ |
s |
Move Down |
← |
a |
Move Left |
→ |
d |
Move Right |
A |
Spacebar |
Restart (when game over) |
B |
Escape |
Back to Main menu |
- Python 3.12 or 3.14 (Compatible with 3.12.3 and 3.14.2)
- Pygame-CE 2.5.6
-
Clone or download this repository from GitHub
-
Install dependencies:
python -m pip install -r requirements.txt
-
With the Launcher
Simply open the launcher and click "Start Game." -
Manually (without the launcher)
You can run the game directly for development or testing:-
From the root directory:
python scripts/main.py # Windows python3 scripts/main.py # Linux/macOS
-
From the
scriptsfolder:python main.py # Windows python3 main.py # Linux/macOS
-
Help your frog cross the road and rivers safely! You have 3 lives, so if you get hit or fall in the water you can restart until you run out of lives. use the controls above to restart or quit the game
- Resolution: 1280×960
- Display is windowed (non-resizeable)
- 2D tile-based grid using square tiles
- Snappy grid aligned movement
- frogger/
- assets/
*.png— game sprites and textures- sounds/
- audio files (sound effects, music)
- scripts/
main.py— game loopconstants.py— store fixed valueslevel.py— level setup and progressionplayer.py— player logiccar.py— car logic and behaviorcar_lane.py— road lane behaviorwater_lane.py— water lane behaviorlog.py— log logic and behaviorscore.py— score trackinghighscore.py— highscore logichighscores.json— highscore storagegameover.py— game over screen and logic
README.md— project documentationrequirements.txt— Python dependencies.gitignore— Ignore unnecessary files
- assets/
- Inspired by classic Frogger arcade game (1981)
- All sprites, sounds and music created in-house
- Made for Capgemini Python Project
- This project is for educational purposes