mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-30 16:36:57 +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
|
||||
Future<void> onLoad() async {
|
||||
add(TappableSquare()..anchor = Anchor.center);
|
||||
add(TappableSquare()..y = 350);
|
||||
world.add(TappableSquare()..anchor = Anchor.center);
|
||||
world.add(TappableSquare()..y = 350);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user