A simple and engaging recreation of the classic Google Chrome dinosaur game. Jump over cacti and avoid obstacles in this endless runner game!
- Python 3.6 or higher
- Pygame 1.9.6 or higher
-
Clone the Repository:
git clone https://github.com/jaylann/DinoGame.git cd dino-run
-
Install Required Packages:
Install the necessary packages using the
requirements.txt
file:pip install -r requirements.txt
Run the game using the following command:
python dino_run.py
- Jumping: Spacebar
- Scoring: Increases over time
- Speed: Gradually increases
- Ending: Game over on collision
You can easily customize various aspects of the game by modifying certain variables.
In the World
class, you can change the background color by modifying the background_color
variable:
self.background_color = (247, 247, 247) # Change the RGB values
In the Cactus
class, you can adjust the scale factor of the cactus by modifying the SCALE_FACTOR
variable:
self.SCALE_FACTOR = 5 # Change the value to adjust the size
In the World
class, you can adjust the initial speed of the game by changing the speed
variable:
self.speed = 6 # Change the value to set a different speed
This project is licensed under the MIT License - see the LICENSE.md file for details.