An open API service indexing awesome lists of open source software.

https://github.com/mukuliskul/runner-game

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.
https://github.com/mukuliskul/runner-game

collision-detection game-development oop pygame user-input-handling

Last synced: about 1 month ago
JSON representation

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.

Awesome Lists containing this project

README

        

## Runner Game using Pygame and OOP

![Runner Game](https://github.com/mukuliskul/Runner-game/blob/main/graphics/player_stand.png)

### 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

```python
# 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.