
Dino Game (Chrome's Offline Game)
Project Title:
Dino Game Clone using C
Project Overview:
This project recreates the iconic Chrome offline Dinosaur Game, where a running T-Rex must jump over obstacles like cacti and dodge flying birds. It's built in C, often using SDL for graphics or a console/terminal interface for simpler visuals.
Key Features:
- Auto-Running Dinosaur: The character runs continuously across the screen.
- Jump Mechanics: Press a key (like spacebar) to make the dinosaur jump.
- Obstacle Generation: Random cacti and birds appear at different intervals.
- Collision Detection: Detects crashes between the dino and obstacles.
- Score System: Score increases as the player survives longer.
- Game Over and Restart: Ends on collision and offers an option to restart.
Technologies Used:
- C Language: Core game loop, input, logic, and scoring.
- SDL Library or Console I/O: For rendering characters, ground, and obstacles.
- Structs and Functions: To manage the dinosaur, obstacles, and game state.
- Timers or Frame Count: Control obstacle movement and game speed.
Learning Outcomes:
- Real-time input handling (e.g., jump timing).
- Implementing continuous background scrolling and object movement.
- Practicing collision detection in 2D space.
- Modular code structure for game entities.
- Understanding event loops and basic physics in games.
Possible Enhancements:
- Add flying obstacles (e.g., birds at different heights).
- Sound effects and background music.
- Day/night background switch like in the original game.
- Power-ups (e.g., invincibility or speed boosts).
- High score tracking.