Skip to content

Commit

Permalink
md file added
Browse files Browse the repository at this point in the history
  • Loading branch information
AfonsoSantos44 committed Mar 29, 2024
1 parent a79594d commit 11165fb
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions T-Rex/t_rex.md
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!**

0 comments on commit 11165fb

Please sign in to comment.