From 14a2b79f261091dede324f972f9c7841974c9a2a Mon Sep 17 00:00:00 2001 From: hop311 Date: Tue, 14 May 2024 00:18:16 +0100 Subject: Misc UI code changes --- game/src/Game/GameSession/MapView.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'game/src/Game/GameSession/MapView.gd') diff --git a/game/src/Game/GameSession/MapView.gd b/game/src/Game/GameSession/MapView.gd index 5b3fa04..aff961a 100644 --- a/game/src/Game/GameSession/MapView.gd +++ b/game/src/Game/GameSession/MapView.gd @@ -25,9 +25,9 @@ var _drag_active : bool = false var _mouse_over_viewport : bool = true -@export var _zoom_target_min : float = 0.10 +@export var _zoom_target_min : float = 0.075 @export var _zoom_target_max : float = 5.0 -@export var _zoom_target_step : float = (_zoom_target_max - _zoom_target_min) / 40.0 +@export var _zoom_target_step : float = (_zoom_target_max - _zoom_target_min) / 64.0 @export var _zoom_epsilon : float = _zoom_target_step * 0.005 @export var _zoom_speed : float = 5.0 # _zoom_target's starting value is ignored as it is updated to the camera's height by _ready, @@ -293,7 +293,7 @@ func _update_orientation() -> void: if _is_detailed_view: # Zero at the transition point, increases as you zoom further in var delta : float = (_zoom_detailed_threshold - _camera.position.y) / _zoom_detailed_threshold - dir.z = -(delta ** 4) + dir.z = -(delta ** 2) _camera.look_at(_camera.position + dir, up) func _update_minimap_viewport() -> void: -- cgit v1.2.3-56-ga3b1