mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-31 00:48:47 +08:00
chore: Remove deprecations for v1.9.0 (#2749)
Removes everything that was marked as deprecated and that should be removed for v1.9.0.
This commit is contained in:
@ -12,13 +12,14 @@ class HoverCallbacksExample extends FlameGame with TapCallbacks {
|
||||
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
add(HoverSquare(Vector2(200, 500)));
|
||||
add(HoverSquare(Vector2(700, 300)));
|
||||
camera.viewfinder.anchor = Anchor.topLeft;
|
||||
world.add(HoverSquare(Vector2(200, 500)));
|
||||
world.add(HoverSquare(Vector2(700, 300)));
|
||||
}
|
||||
|
||||
@override
|
||||
void onTapDown(TapDownEvent event) {
|
||||
add(HoverSquare(event.localPosition));
|
||||
world.add(HoverSquare(event.localPosition));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user