A simple Dino Runner-style game built with Python + Pygame, featuring animated obstacles, day/night cycles, sound effects, and a high-score system.
💡 Note: This project is an independent fan-made implementation written from scratch, inspired by the original Google Chrome Chromium T-Rex Runner game.
Control a dinosaur and survive as long as possible by avoiding obstacles (cacti and birds).
The game gradually increases speed and difficulty over time.
- ⬆️ Up Arrow - Jump
- ⬇️ Down Arrow - Duck
- 🔄 Space / Click - Restart
- ❌ Collision = Game Over
- Animated dinosaur (run, jump, fall, crash states)
- Random cactus generation with multiple variants
- Flying bird obstacles
- Day / night cycle system
- Sound effects (jump, crash, speed-up)
- Increasing difficulty over time
- Persistent high score saved in
record.txt - Moving clouds, stars, moon background
- Simple collision detection system
- Windows operating system
- Python 3.8+
- Pygame
- Winsound
Install the required dependency:
pip install pygame
pip install winsound.
├── main.py
├── record.txt (auto-generated after first run)
├── img/
│ ├── (game sprites)
│ └── font/
│ └── (score digits / UI assets)
└── sounds/
├── crash.wav
├── faster.wav
└── jump.wav
Run the game using:
python main.pyThe game automatically saves your best score in record.txt.
It updates only when you beat your previous record.
jump.wav– played when jumpingcrash.wav– played on collisionfaster.wav– played every speed increase