flutter-flame-games
Installation
SKILL.md
Flame Game Development
Expert guidelines for building 2D games with Flutter and the Flame engine.
Quick Start
When starting a new Flame game or reviewing code:
- Game Class: Extend
FlameGamewith appropriate mixins (HasCollisionDetection,HasKeyboardHandlerComponents) - Components: Build entities with
SpriteComponent,PositionComponent, orSpriteAnimationComponent - Game Loop: Implement
update(double dt)for logic andrender(Canvas canvas)for drawing - Collision: Add
CollisionCallbacksmixin and define hitboxes (CircleHitbox,RectangleHitbox) - Input: Handle keyboard with
KeyboardHandler, touch withTapCallbacks, joystick withJoystickComponent