feat!: Move Forge2DGame to use CameraComponent (#2728)

This enables flame_forge2d to work with the CameraComponent and the new event system.
This commit is contained in:
Lukas Klingsbo
2023-09-16 10:08:29 +02:00
committed by GitHub
parent 3c550f883b
commit 7a3d5126a5
65 changed files with 1282 additions and 1034 deletions

View File

@ -11,8 +11,7 @@ import 'package:flame/input.dart';
enum Shapes { circle, rectangle, polygon }
class GestureHitboxesExample extends FlameGame
with TapCallbacks, HasHoverables {
class GestureHitboxesExample extends FlameGame with TapCallbacks {
static const description = '''
Tap to create a PositionComponent with a randomly shaped hitbox.
You can then hover over to shapes to see that they receive the hover events