Skip to content

Developing this game was my first big attempt at game development and OOP in Python, learning valuable skills in implementing game mechanics, graphics rendering, collision detection, and user input handling.

License

Notifications You must be signed in to change notification settings

mukuliskul/Runner-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Developing this game was my first big attempt at game development and OOP in Python, learning valuable skills in implementing game mechanics, graphics rendering, collision detection, and user input handling.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages