Skip to content

Files

Latest commit

 

History

History

Infinite Runner with Customizable Obstacles

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Infinite Runner with Customizable Obstacles

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.

Features

  • 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.

Prerequisites

  • Python
  • Pygame library (pip install pygame)

How to Run

  1. Install the required Pygame library using pip:
pip install pygame
  1. Download or clone the repository.

  2. Run the game script:

python infinite_runner.py
  1. Use the left and right arrow keys to move the player character.
  2. Press the spacebar to make the player character jump.

Gameplay

  • 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.

Customization

  • 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.