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.
- 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.
- Game Development
- Pygame
- Object-Oriented Programming (OOP)
- Graphics Rendering
- Collision Detection
- User Input Handling
- 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.
# 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.
- Ensure you have Python and Pygame library installed.
- Run the
main.py
file in your Python environment. - Use the spacebar to control the player's jump and avoid obstacles.