summaryrefslogtreecommitdiffstats
path: root/demo/Main.gd
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-11-08 12:29:17 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2023-11-08 12:29:17 +0100
commit1cb10e65d14c8e7690c797975cbc7945670ca6a9 (patch)
treefd5834a5ae167d7ae4950f6aa6eda27a8dd8254e /demo/Main.gd
parentc2a17228c19c4f959367b139e39c5e24dd7edd36 (diff)
downloadgodot-hexgrid-1cb10e65d14c8e7690c797975cbc7945670ca6a9.zip
godot-hexgrid-1cb10e65d14c8e7690c797975cbc7945670ca6a9.tar.gz
Demo : fix zoom
Diffstat (limited to 'demo/Main.gd')
-rw-r--r--demo/Main.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/Main.gd b/demo/Main.gd
index 8aad56f..50c0ab6 100644
--- a/demo/Main.gd
+++ b/demo/Main.gd
@@ -29,7 +29,7 @@ func on_rotate() -> void:
on_viewport_resized()
func on_zoom(b : bool) -> void:
- Camera.update_camera(0, 0, -0.05 if b else 0.05)
+ Camera.update_camera(0, 0, 0.05 if b else -0.05)
func on_toggle() -> void:
Map.set_mode(UI.get_node("LOS").is_pressed(), UI.get_node("Move").is_pressed(), UI.get_node("Influence").is_pressed())