A simple side-scrolling platformer game built with Python and Pygame.

- Player character that can move left/right and jump
- Platforms to jump on
- Moving enemies
- Side-scrolling camera that follows the player
- Gravity and collision detection
- Python 3.x
- Pygame
- Install Python from https://python.org
- Install Pygame:
pip install pygame - Run the game:
python main.py
- Left Arrow: Move left
- Right Arrow: Move right
- Space: Jump
The game is structured with classes for Player, Platform, and Enemy. You can modify:
- Add more levels by changing the platforms and enemies lists
- Add sprites/images instead of colored rectangles
- Add sound effects and music
- Implement scoring, lives, or power-ups
- Add more enemy types or behaviors
- Improve collision detection
- If the game doesn't run, ensure Pygame is installed:
pip install pygame - On some systems, you may need to install additional dependencies for Pygame