Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
feat: use normal follow
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago committed Mar 11, 2024
1 parent 8958b04 commit af13e00
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/trashy_road/lib/src/game/game.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ class TrashyRoadGame extends FlameGame
world.add(blocProvider);

_player = trashyRoadWorld.tiled.children.whereType<Player>().first;

await camera.viewfinder.add(
CameraFollowBehavior(target: _player, viewport: camera.viewport),
);
camera.follow(_player);
_setBounds();
}

Expand Down

0 comments on commit af13e00

Please sign in to comment.