-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a79594d
commit 11165fb
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# T-Rex Runner Game | ||
|
||
## Overview | ||
|
||
T-Rex Runner is a simple yet addictive game where players control a dinosaur running across an endless track. The objective is to avoid obstacles by jumping over them or ducking under them. The game continues until the dinosaur collides with an obstacle, at which point the game ends. | ||
|
||
## How to Play | ||
|
||
- Start the game by pressing the spacebar or clicking the mouse button. | ||
- Control the dinosaur's actions using the keyboard: | ||
- Press the up arrow key to jump. | ||
- Press the down arrow key to duck. | ||
- Navigate the dinosaur through the obstacles. | ||
- Earn points for each obstacle successfully avoided. | ||
- The game ends if the dinosaur collides with an obstacle. | ||
|
||
## Scoring | ||
|
||
- Each successful obstacle dodge earns one point. | ||
|
||
## Game Over | ||
|
||
The game ends under the following conditions: | ||
|
||
- The dinosaur collides with an obstacle. | ||
- To restart the game after a game over, click the restart button displayed on the screen. | ||
|
||
## Controls | ||
|
||
- Use the up arrow key to make the dinosaur jump. | ||
- Use the down arrow key to make the dinosaur duck. | ||
|
||
## Features | ||
|
||
- Animated dinosaur sprite with running, jumping, and ducking animations. | ||
- Infinite scrolling background with desert landscape. | ||
- Various obstacles, including cacti and birds. | ||
- Score tracking and display. | ||
- Game over screen with the option to restart the game. | ||
|
||
## Credits | ||
|
||
- Developed using Python programming language and the Pygame library. | ||
- Sprites and images sourced from open resources. | ||
|
||
**Enjoy playing T-Rex Endless Runner!** |