Skip to content

🦖 Chrome Dinosaur Game in build with Pygame in Python.

Notifications You must be signed in to change notification settings

MaxRohowsky/chrome-dinosaur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chrome Dino Game

Preview

Chrome Dinosaur Game in Python using Pygame! 🦖

It's the game you see in the Chrome Browser, when you're offline.

Made by maxontech

Table of contents

YouTube Videos

  1. Python/Pygame Chrome Dino (Part 1) - Setup & Dino Animation
  2. Python/Pygame Chrome Dino (Part 2) -JUMPING & DUCKING Motion
  3. Python/Pygame Chrome Dino (Part 3) - Score & Background
  4. Python/Pygame Chrome Dino (Part 4) - Obstacles and Collisions
  5. Python/Pygame Chrome Dino (Part 5) - Menu and Final Touches

Description

This is a simple implementation of the Chrome Dinosaur Game using Python and Pygame. The game is a simple infinite runner where the player has to jump over cacti and avoid birds. The game gets progressively harder as the player's score increases. See how far you can get!

Installation

Requirements: You must have Python installed and preferably a code editor like PyCharm.

  1. Clone the repository
  2. In the terminal, navigate to the directory where the repository was cloned, e.g., C:\Users\Max\PycharmProjects\chrome-dinosaur
  3. Create a virtual environment, activate it, and install pygame by running the following commands in the terminal:
    python -m venv venv #This creates a virtual environment
    venv\Scripts\activate #This activates the virtual environment
    pip install pygame #This installs the Pygame library
  4. Run the game by running the following command in the terminal:
    python main.py

Controls

  • Use the up arrow key or spacebar to jump.
  • Press any key to start the game.
  • When the game ends, press any key to restart.

Libraries

  • pygame: Pygame is a cross-platform set of Python modules designed for writing video games.

FAQ

Contact

Feel free to reach out to me on Twitter if you have any questions or feedback! Hope you find this useful!