diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-11-08 12:29:17 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-11-08 12:29:17 +0100 |
commit | 1cb10e65d14c8e7690c797975cbc7945670ca6a9 (patch) | |
tree | fd5834a5ae167d7ae4950f6aa6eda27a8dd8254e /demo/Main.gd | |
parent | c2a17228c19c4f959367b139e39c5e24dd7edd36 (diff) | |
download | godot-hexgrid-1cb10e65d14c8e7690c797975cbc7945670ca6a9.zip godot-hexgrid-1cb10e65d14c8e7690c797975cbc7945670ca6a9.tar.gz |
Demo : fix zoom
Diffstat (limited to 'demo/Main.gd')
-rw-r--r-- | demo/Main.gd | 2 |
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()) |