Chrome Dinosaur Game in Python using Pygame! 🦖
It's the game you see in the Chrome Browser, when you're offline.
Made by maxrohowsky
- Python/Pygame Chrome Dino (Part 1) - Setup & Dino Animation
- Python/Pygame Chrome Dino (Part 2) -JUMPING & DUCKING Motion
- Python/Pygame Chrome Dino (Part 3) - Score & Background
- Python/Pygame Chrome Dino (Part 4) - Obstacles and Collisions
- Python/Pygame Chrome Dino (Part 5) - Menu and Final Touches
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!
Requirements: You must have Python installed and preferably a code editor like PyCharm.
- Clone the repository
- In the terminal, navigate to the directory where the repository was cloned, e.g.,
C:\Users\Max\PycharmProjects\chrome-dinosaur
- 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
- Run the game by running the following command in the terminal:
python main.py
- 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.
- pygame: Pygame is a cross-platform set of Python modules designed for writing video games.
- How to Open GitHub Projects in PyCharm? Explained Here
- How to use Virtual Environments? Explained Here
- How to install PyCharm and Python? Explained Here
- How to set PyCharm Config. and Interpreter? Explained Here
Feel free to reach out to me on Twitter if you have any questions or feedback! Hope you find this useful!