Skip to content

A replica of Chrome's Dinosaur Game using Pygame which can be played in the browser

Notifications You must be signed in to change notification settings

helios2003/Dino-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dino-Game

This is an implemnetation of the famous Dino Game of Chrome browser in Python using Pygame.

Requirements

  • Python 3.x
  • Pygame

How to run

  • Fork the repository and clone it to your local machine using HTTP or SSH links.
git clone https://github.com/helios2003/Dino-Game.git
  • Open the terminal/command prompt from the project directory.
  • Run the command pip install -r requirements.txt or pip3 install -r requirements.txt to install the dependencies.
  • Run the command python main.py.

Controls

  • Press Up Arrow Key to jump.
  • Press Down Arrow Key to duck.
  • Press Esc Key to pause the game.

Note

The project has been built using pygbag library. To build it for yourself and run it in the browser, follow the steps given below:

  • Install pygbag using the command pip install pygbag or pip3 install pygbag.
  • In the directory above the project directory run the command pygbag <name-of-the-game-directory>.
  • Open the browser and go to the link http://localhost:8000.
  • Reload the page when the game is over.

Screenshots

1. Cactus as Obstacle

Cactus as Obstacle

2. Bird as Obstacle

Bird as Obstacle

3. Dinosaur Jumping

Dinosaur Jumping

About

A replica of Chrome's Dinosaur Game using Pygame which can be played in the browser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages