Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦖 Dino Game

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.

🎮 Gameplay

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

✨ Features

  • 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

📦 Requirements

  • Windows operating system
  • Python 3.8+
  • Pygame
  • Winsound

Install the required dependency:

pip install pygame
pip install winsound

🗂️ Project Structure

.
├── main.py
├── record.txt (auto-generated after first run)
├── img/
│   ├── (game sprites)
│   └── font/
│       └── (score digits / UI assets)
└── sounds/
    ├── crash.wav
    ├── faster.wav
    └── jump.wav

🚀 Running the Game

Run the game using:

python main.py

🏆 High Score System

The game automatically saves your best score in record.txt.

It updates only when you beat your previous record.

🔊 Audio

  • jump.wav – played when jumping
  • crash.wav – played on collision
  • faster.wav – played every speed increase

About

A simple Dino Runner-style game built with Python + Pygame, featuring animated obstacles, day/night cycles, sound effects, and a high-score system.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages