This project is a platformer game developed using Pygame, a popular Python library for creating video games. It features a character navigating through levels with various obstacles and enemies. The game includes features such as power-ups, coin collection, enemy interactions, and a scoring system.
- Dynamic levels: The game includes various interactive elements such as moving platforms, obstacles, and enemy characters.
- Sound effects: Background music and sound effects enhance the gameplay experience.
- Power-ups and coins: Players can collect coins and power-ups to improve their performance and score.
- Enemy interactions: Players must avoid or defeat enemies using the game's mechanics.
- Scoring system: Points are awarded based on coin collection and enemy interactions.
To run this game, you need Python and Pygame installed on your system. Pygame is a set of Python modules designed for writing video games.
If you don't have Pygame installed, you can install it via pip:
pip install pygame
To run the game, execute the Python script. Ensure you are in the directory containing the script and all necessary assets.
python platformer.py
Control the character using the following keyboard commands:
- Arrow keys (Left/Right): Move the character left or right.
- Spacebar: Used for the character to jump or activate power-ups.
- Esc (Escape): Exit the game or return to the main menu.
- P: Pause the game and open the pause menu.
These controls allow for full navigation and interaction within the game environment, providing a complete and engaging player experience.