This is a simple Infinite Runner game implemented in Python using the Pygame library. The player runs endlessly through a procedurally generated landscape while avoiding various obstacles. What sets this game apart is the ability for the player to encounter multiple types of obstacles: rectangular, triangular, and rotating circular obstacles.
- Endless runner gameplay with customizable obstacles.
- Three types of obstacles: rectangular, triangular, and rotating circular.
- Player can move left, right, and jump using arrow keys and spacebar.
- Scoring system to keep track of player progress.
- Background music, sound effects for jumping and collisions.
- Python
- Pygame library (
pip install pygame
)
- Install the required Pygame library using
pip
:
pip install pygame
-
Download or clone the repository.
-
Run the game script:
python infinite_runner.py
- Use the left and right arrow keys to move the player character.
- Press the spacebar to make the player character jump.
- The objective of the game is to survive for as long as possible without colliding with any obstacles.
- Rectangular obstacles move straight down, triangular obstacles move diagonally, and circular obstacles rotate while moving down.
- The player can collect points by running and avoiding collisions with obstacles.
- You can customize the appearance and movement of obstacles by modifying the obstacle generation and update logic in the script.
- Feel free to add more obstacle types or enhance the gameplay to suit your preferences.