This project is a platformer game created using the Pygame library, following a tutorial series by DaFluffyPotato on YouTube. Pygame is a powerful Python library for creating games, offering tools to handle graphics, sounds, and inputs, making it ideal for developing 2D games.
Through this project, I learned:
- The fundamentals of game development with Pygame
- Key concepts like tile maps, physics, and collision detection
- Advanced features such as particles, animation, camera control, and AI
- How to organize a game project and create an executable version
The game features:
- Tile-based levels with scrolling and parallax backgrounds
- Basic player mechanics: jumping, dashing, and attacking
- Enemies with simple AI, level transitions, and a basic level editor
- Advanced features like screen shake, particles, and animations
- Audio integration for sound effects and music
- Performance optimization for rendering tiles
- A camera system for smoother gameplay and better visuals
- A level editor for creating custom levels
- Game Loop: Completed the game loop with polished mechanics and features.
- Audio: Background music and sound effects for various events.
- Visual Effects: Added outlines, smooth transitions, and screen shake effects.
- Enemies: AI-driven enemy characters with interaction and movement.
- Dash & Jump-Slide: Quick dash and smooth jump-slide mechanics.
- Particles: Particle effects for actions like explosions and jumps.
- Level Editor: A basic editor for customizing game levels.
- Animations: Fluid animations for both player and enemy characters.
- Optimized Tile Rendering: Optimized tile management for better performance.
- Camera System: Enhanced camera system and sky rendering.
- Physics & Collisions: Handling gravity, player mechanics, and tile-based collisions.
- data/: Folder containing game assets such as images, sounds, etc.
- scripts/: Folder containing Python scripts for the game.
- map.json: JSON file containing map layout data.
- game.py: The main game file where the game runs.
- editor.py: Tool to edit and create custom game levels.
-
Ensure you have Python 3.x installed on your system.
-
Install Pygame using the following command:
pip install pygame-ce
-
Make sure you're in the correct repository (ShadowStrike) when running the game.py file.
To set up the project, follow these steps:
-
Clone the repository:
git clone https://github.com/MisbahAN/ShadowStrike.git
-
Navigate into the project directory:
cd ShadowStrike -
Run the game:
python game.py
- Video Tutorial: DaFluffyPotato's Platformer Tutorial
This project serves as a great way to get hands-on experience with Pygame and improve software engineering skills in a fun and creative way.