Description: Pixel is a 2D game built using the Flame engine. In this game, players collect fruits, avoid traps, and evade enemies that chase them. Inspired by classic platformers like Mario, Pixel provides a fun and challenging gaming experience.
- Collectible Fruits: Gather fruits scattered throughout the levels to increase your score.
- Traps: Avoid various traps that are strategically placed to challenge your reflexes and timing.
- Enemies: Evade or defeat enemies that actively chase you.
- Retro Graphics: Enjoy pixel art graphics that give a nostalgic feel to the game.
- Sound Effects: Immersive sound effects to enhance the gaming experience.
- Flutter SDK: Install Flutter
- Flame: Flame Engine
-
Clone the repository:
git clone https://github.com/Tareq-Ghassan/pixel-game.git
-
Navigate to the project directory:
cd pixel-game
-
Get the dependencies:
flutter pub get
- Connect your Android/iOS device or start an emulator.
- Run the game:
flutter run
- Move Left: Tap or hold the left side of the screen
- Move Right: Tap or hold the right side of the screen
- Jump: Tap the jump button on the screen
- Collect Fruits: Move the character over fruits to collect them
- Avoid Enemies: Evade enemies to stay alive
- Avoid Traps: Jump or move away from traps to avoid them
The game follows a simple architecture pattern:
- Game Engine: Built using the Flame engine for smooth and efficient game development.
- Components: Different components like player, enemies, fruits, and traps are managed separately for modularity.
- Game Logic: Handles the rules and mechanics of the game, such as collision detection and scoring.
Contributions are welcome! Please fork the repository and use a feature branch. Pull requests are warmly welcome.
This project is licensed under the MIT License - see the LICENSE file for details.
- Flame Engine for providing a powerful game development framework
- Flutter for making cross-platform development easier
- OpenGameArt for providing free game assets
- Stack Overflow for troubleshooting and code examples