CodeNewbie Community 🌱

Dhruv Panchal
Dhruv Panchal

Posted on

Chrome Dino Game using Python...

A Replica of the hidden Dinosaur Game from Chrome Browser Offline mode so you don't have to be offline to play it...πŸ˜‚πŸ˜‚

Introduction:

  • The Dinosaur Game, also known as the T-Rex Game, Steve the Jumping Dinosaur, or Dino Runner and initially codenamed Project Bolan, is a built-in browser game in the Google Chrome Web Browser. The game was created by Sebastien Gabriel in 2014, and can be accessed by hitting the space bar when in offline mode on Google Chrome.

About:

  • The following represents a recreated version of the famous Dinosaur Game from Chrome Browser Offline mode implemented using Python and PyGame. The project file contains Image Files and a python script (chromedino.py).
  • A simple and easy-to-use GUI is provided for better gameplay. The gameplay design is so simple that the user won’t find it difficult to use and understand. Different images are used in the development of this simple game project, the gaming environment is just like the original Chrome Dino Run game. For demo of the project, have a look at the GIF below.

Chrome Dino Runner GIF

Installation:

  • First of all, clone the repository using:
git clone https://github.com/dhhruv/Chrome-Dino-Runner.git
Enter fullscreen mode Exit fullscreen mode

OR
Download the Zip and extract it's contents.

  • Then download the dependencies in your Command Prompt OR Terminal using:
pip install requirements.txt
Enter fullscreen mode Exit fullscreen mode

Usage:

python chromedino.py
Enter fullscreen mode Exit fullscreen mode

Input:

Keys Actions
Any Key Press any key to Start the Game.
↑ Press Up Arrow to jump and avoid cacti.
↓ Press Down Arrow to duck and avoid pterodactyls.

So, stay tuned for further updates on GitHub:

GitHub logo dhhruv / Chrome-Dino-Runner

πŸ±β€πŸ‰ A Replica of the hidden Dinosaur Game from Chrome Browser Offline mode build using Python and PyGame.

References:

Top comments (8)

Collapse
 
michaelcurrin profile image
Michael Currin

I'm getting an error on the GIF

Collapse
 
dhhruv profile image
Dhruv Panchal

No matter what I use, it gives an error. Can you help regarding that @michaelcurrin ?

Collapse
 
michaelcurrin profile image
Michael Currin • Edited

I previewed this and saw the Network tab gives an error.

422 Unprocessable Entity


![Animation](https://raw.githubusercontent.com/dhhruv/Chrome-Dino-Runner/master/assets/Other/Chrome%20Dino.gif)
Enter fullscreen mode Exit fullscreen mode

Animation

Thread Thread
 
michaelcurrin profile image
Michael Currin
![Game over](https://github.com/dhhruv/Chrome-Dino-Runner/raw/master/assets/Other/GameOver.png)
Enter fullscreen mode Exit fullscreen mode

Game over

Collapse
 
dhhruv profile image
Dhruv Panchal

Can you elaborate or attach a screenshot ??

Collapse
 
michaelcurrin profile image
Michael Currin • Edited

Two browsers give me this view:

And clicking the broken link gives and error page.


Can I suggest linking to your image on GitHub? Then you don't have to upload it here.

Use the raw view and paste the link here as:

![](https://rawgithubcontent.com/...)
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
dhhruv profile image
Dhruv Panchal

I tried but it works on the dev.to website but not this one. Still will try once again. Thanks for reaching out @michaelcurrin .

Thread Thread
 
michaelcurrin profile image
Michael Currin

Maybe the upload failed or GIFs aren't supported to upload.