https://github.com/bursasha/pygame-braveheart-game
2D Game in Pygame with plenty of mechanics đŽ
https://github.com/bursasha/pygame-braveheart-game
2d-game game game-mechanics inheritance oop-python pygame python python-game semester-project tiled-map-editor
Last synced: 3 months ago
JSON representation
2D Game in Pygame with plenty of mechanics đŽ
- Host: GitHub
- URL: https://github.com/bursasha/pygame-braveheart-game
- Owner: bursasha
- Created: 2023-02-17T16:09:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-13T18:18:11.000Z (about 1 year ago)
- Last Synced: 2025-02-09T01:17:28.549Z (4 months ago)
- Topics: 2d-game, game, game-mechanics, inheritance, oop-python, pygame, python, python-game, semester-project, tiled-map-editor
- Language: Python
- Homepage:
- Size: 3.88 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Brave Heart Game đĄī¸â¤ī¸
## Project Structure: đ
- `game/`: Contains all the game-related files and assets.
- `audio/`: Holds game audio files.
- `creatures/`: Logic and attributes for game creatures.
- `graphics/`: Contains graphical assets.
- `layouts/`: Contains layout CSV files.
- `level/`: Manages level-specific logic.
- `tests/`: Contains test scripts.
- `ui/`: User interface components.
- `utils/`: Utility scripts.
- `weapons/`: Weapon logic and attributes.
- `main.py`: Main script to run the game.
- `README.md`: This README file providing an overview of the project.
- `burakole.pdf`: Documentation related to the project.
- `requirements.txt`: Lists all the Python dependencies needed to run the game.## Technology Stack: đ
- **Language:** Python
- **Libraries:** Pygame for game development, PyAutoGUI for handling automation and GUI interactions
- **Tools and Techniques:**
- **Graphics Handling**: Pygame for rendering 2D graphics and managing animations.
- **Sound Management**: Pygame for playing sound effects and background music.
- **Collision Detection**: Pygame's built-in functions for handling collisions between game objects.
- **Event Handling**: Pygame for managing user inputs and game events.
- **Game Loop**: Core loop to keep the game running and updating.
- **Automation**: PyAutoGUI for automating tasks within the game.## What is it capable of? đ
Brave Heart is a 2D game featuring various mechanics such as:
- **Character Movement**: Smooth and responsive controls for the player.
- **Enemy AI**: Enemies with basic artificial intelligence.
- **Level Progression**: Multiple levels with increasing difficulty.
- **Interactive Elements**: Collectibles, obstacles, and power-ups.
- **User Interface**: Menus, HUDs, and in-game notifications.
- **Sound Effects**: Background music and sound effects to enhance gameplay.
- **Automation**: Using PyAutoGUI to automate certain game actions for testing purposes.## About the Project: đ
Brave Heart is a 2D game developed using Python, Pygame, and PyAutoGUI. The game features various levels, character interactions, and a detailed user interface. The project showcases skills in game development, including game logic, asset management, and user interface design.## Concepts Implemented: đ
### Game Mechanics đšī¸
- **Player Controls**: Implementing smooth and responsive controls for the player character.
- **Enemy Behavior**: Designing basic AI for enemy characters.
- **Collision Detection**: Managing interactions between game objects.### Asset Management đ¨
- **Image Handling**: Loading and displaying game sprites.
- **Sound Management**: Incorporating background music and sound effects.### Game Design đ ī¸
- **Level Design**: Creating engaging and challenging levels.
- **UI Design**: Designing intuitive menus and HUDs for better user experience.## How to Run the Game: đšī¸
My game can be run on any Linux distribution or macOS system. To start, you need to go to the **game/** folder, since the program modules are looking for a relative path from this directory. After that, use the command to run **main.py**.```bash
cd game
python3 main.py
```