A 2D platformer game built with Flutter and Flame engine, featuring a comprehensive debug system for collision detection and physics development.
- Complete 2D Platformer Mechanics: Running, jumping, collision detection
- Visual Debug System: See collision boxes in development mode
- Tiled Level Support: Build levels with Tiled map editor
- Mobile Controls: On-screen joystick for mobile devices
- Camera System: Smooth camera following with boundaries
The game includes an advanced debug system that activates automatically in development mode:
- Red boxes: Solid collision blocks (walls, floors)
- Green boxes: Platform blocks (passable from below)
- Blue outline: Player collision boundary
- Console logging: Real-time position, velocity, and collision data
- Run the app in debug mode:
flutter run - Collision boxes will appear automatically
- Check console for physics data
- No configuration needed - works out of the box
lib/ ├── main.dart # App entry point ├── pixel_adventure.dart # Main game class └── components/ ├── player.dart # Player controller and physics ├── collision_block.dart # Collision system with debug ├── level.dart # Level loader (Tiled maps) └── utils.dart # Collision detection utilities
----------------------- Getting started -----------------------
- Flutter SDK (latest stable)
- Android Studio / VS Code
- Tiled Map Editor (optional, for level design)
# Clone the repository
git clone https://github.com/houssam-05-ctrl/2dgameDebugSystem
# Navigate to project
cd pixel_adventure
# Install dependencies/tiles
flutter pub get
# Run in debug mode
flutter run
dont forget to check the versions of flutter youre using, dear enthoustiast
--------------