Skip to content

Commit

Permalink
Fix camera move speed when fully zoomed out
Browse files Browse the repository at this point in the history
Was too slow
  • Loading branch information
Kvel2D committed Nov 11, 2024
1 parent 787eb7c commit 8d73614
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/game_scene/default_camera.gd
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ func _get_cam_speed_from_setting(setting: String) -> float:
var speed_ratio: float = 1.0 + 2.0 * setting_value
var speed: float = MOVE_SPEED_BASE * speed_ratio

# TODO: temp hackfix to make moving camera at min zoom
# (zoomed out fully) not that slow. Figure out a better
# formula to make the speed ramp up consistently as camera
# zooms out.
if _current_zoom_value == ZOOM_MIN:
speed *= 3

return speed


Expand Down

0 comments on commit 8d73614

Please sign in to comment.