mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 03:15:43 +08:00
fix: Use world on tap_callbacks_example (#2875)
Use world on tap_callbacks_example. We should just standardize all examples to use the world unless there is a reason not to, in order to avoid confusing users.
This commit is contained in:
@ -13,8 +13,8 @@ class TapCallbacksExample extends FlameGame {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> onLoad() async {
|
Future<void> onLoad() async {
|
||||||
add(TappableSquare()..anchor = Anchor.center);
|
world.add(TappableSquare()..anchor = Anchor.center);
|
||||||
add(TappableSquare()..y = 350);
|
world.add(TappableSquare()..y = 350);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user