mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 19:12:31 +08:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user