Retain the zoom factor when adding a new frame

Also, when importing a PNG, the window title changes.
This commit is contained in:
OverloadedOrama 2019-12-09 01:39:59 +02:00
parent 31a67fcbc2
commit 704dcf90c0
4 changed files with 104 additions and 99 deletions

View file

@ -27,7 +27,6 @@ func _input(event : InputEvent) -> void:
# Zoom Camera
func zoom_camera(dir : int) -> void:
var zoom_margin = zoom * dir / 10
#if zoom + zoom_margin > zoom_min && zoom + zoom_margin < zoom_max:
if zoom + zoom_margin > zoom_min:
zoom += zoom_margin