diff --git a/packages/trashy_road/lib/src/game/game.dart b/packages/trashy_road/lib/src/game/game.dart index 3c511622..0ff7ff7c 100644 --- a/packages/trashy_road/lib/src/game/game.dart +++ b/packages/trashy_road/lib/src/game/game.dart @@ -89,10 +89,7 @@ class TrashyRoadGame extends FlameGame world.add(blocProvider); _player = trashyRoadWorld.tiled.children.whereType().first; - - await camera.viewfinder.add( - CameraFollowBehavior(target: _player, viewport: camera.viewport), - ); + camera.follow(_player); _setBounds(); }