aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/MapView.gd
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-05-16 22:15:25 +0200
committer GitHub <noreply@github.com>2024-05-16 22:15:25 +0200
commit963a4a84a0cb6990f4542eafa0b8a82cfc032834 (patch)
tree1ee38ce3be0325752f89e72062aea51d54747a70 /game/src/Game/GameSession/MapView.gd
parentbfccdb87d66304604ad018037db1581746646bfa (diff)
parent14a2b79f261091dede324f972f9c7841974c9a2a (diff)
Merge pull request #230 from OpenVicProject/misc
Misc UI code changes
Diffstat (limited to 'game/src/Game/GameSession/MapView.gd')
-rw-r--r--game/src/Game/GameSession/MapView.gd6
1 files changed, 3 insertions, 3 deletions
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: