A 2D platformer developed in Python using the Pygame library. This project was built as a practical exercise to explore Object-Oriented Programming (OOP) and game development mechanics.
This project served as a hands-on introduction to structuring Python applications. The codebase demonstrates:
- OOP Principles: Using Python classes to manage game entities (Player, Enemies, Level Tiles).
- The Game Loop: Handling real-time event processing, logic updates, and frame rendering.
- Physics & Collisions: Implementing gravity, jumping mechanics, and tile-based collision detection.
- Level Generation: Utilizing a level editor to parse and render dynamic game environments.
- Language: Python 3
- Library: Pygame
Note: Python 3.10.x or newer is required
git clone <link-of-this-repository>
cd <repository-folder-name>
On Windows:
python -m venv .venv
.venv\Scripts\activate
On macOS/Linux:
python3 -m venv .venv
source .venv/bin/activate
pip install pygame==2.6.1
python joc.py
- A: Walk left
- D: Walk right
- W: Jump
- Space: Shoot
- L-Ctrl: Throw Grenade
- Escape: Pause
- Tutorial Reference: The core mechanics, physics, and level editor were built following the Pygame Platformer Tutorial by russs123 as a learning reference for Pygame.
- Art Assets: Free, open-source assets provided via the tutorial's repository here.