diff --git a/lib/game/components/player_camera_anchor.dart b/lib/game/components/player_camera_anchor.dart index bb39597f..d74fdbf2 100644 --- a/lib/game/components/player_camera_anchor.dart +++ b/lib/game/components/player_camera_anchor.dart @@ -24,6 +24,7 @@ class PlayerCameraAnchor extends Component ); late final _cameraXOffset = cameraViewport.x * .4; + late final _cameraYOffset = cameraViewport.y * .2; @override Vector2 get position => _anchor; @@ -31,7 +32,7 @@ class PlayerCameraAnchor extends Component void _setAnchor(double x, double y) { _anchor ..x = x.clamp(_cameraMin.x, _cameraMax.x) + _cameraXOffset - ..y = y.clamp(_cameraMin.y, _cameraMax.y); + ..y = y.clamp(_cameraMin.y, _cameraMax.y) - _cameraYOffset; } @override diff --git a/lib/game/dash_run_game.dart b/lib/game/dash_run_game.dart index d115bb38..94a51416 100644 --- a/lib/game/dash_run_game.dart +++ b/lib/game/dash_run_game.dart @@ -25,7 +25,7 @@ class DashRunGame extends LeapGame ); static const prefix = 'assets/map/'; - static final _cameraViewport = Vector2(592, 1280); + static final _cameraViewport = Vector2(592, 1024); final AssetBundle? customBundle;