Kangaroo Dash is an offline 2D arcade game built using Python and the Pygame library, directly inspired by Google Chrome's Dinosaur Game. Players control a pixelated kangaroo dashing through an endless desert environment, executing timed jumps over cacti and ducking under flying birds to avoid collisions as the game progressively speeds up.
This project was developed to explore fundamental 2D game development concepts using Python and Pygame.
-
A primary goal was implementing an infinite scrolling background mechanism inspired by Coding With Russ's Pygame tutorial.
-
Furthermore, the project served as an opportunity to implement delta time (
dt) for frame-rate-independent movement and physics. -
Additionally, the project incorporates hardware integration by connecting physical button inputs to the game using the
pyFirmatalibrary for Arduino.
- Python Version: Python 3.9 or higher
- Python Packages:
pygamepyfirmata
To install the required dependencies, run:
pip install pygame pyfirmata- Clone this repository:
git clone https://github.com/franciskendrick/Kangaroo-Dash.git
cd Kangaroo-Dash- Run the application:
python src/main.py