Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.48 KB

t_rex.md

File metadata and controls

46 lines (30 loc) · 1.48 KB

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!