Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.56 KB

Readme.md

File metadata and controls

54 lines (37 loc) · 1.56 KB

Runner Game using Pygame and OOP

Runner Game

Description

Developed a captivating Runner Game using Pygame library and OOP concepts. Gain expertise in implementing game mechanics, graphics rendering, collision detection, and user input handling.

Learning Outcomes

  • Mastered Pygame library for game development.
  • Applied OOP principles for a structured and efficient codebase.
  • Developed skills in graphics rendering, collision detection, and user input handling.

Skills

  • Game Development
  • Pygame
  • Object-Oriented Programming (OOP)
  • Graphics Rendering
  • Collision Detection
  • User Input Handling

How to Play

  • Use the spacebar to make the player jump.
  • Avoid colliding with obstacles to keep the game running.
  • Collect points by surviving as long as possible.

Code Snippet

# Insert a relevant code snippet from your project to showcase a key feature or functionality.
# For example:
def display_score():
    # Function to display the player's score.

def obstacle_movement(obstacle_list):
    # Function to move obstacles across the screen.

def collissions(player,obstacle):
    # Function to check for collisions between the player and obstacles.

def player_animation():
    # Function to animate the player's movement.

# The main game loop and other functions.

How to Run

  1. Ensure you have Python and Pygame library installed.
  2. Run the main.py file in your Python environment.
  3. Use the spacebar to control the player's jump and avoid obstacles.