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:
Luan Nico
2023-11-26 12:32:59 -05:00
committed by GitHub
parent 39edc70206
commit 37f7b12f57

View File

@ -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);
}
}