Bigger range for the camera's allowed zoom levels.

This commit is contained in:
Relintai 2020-07-16 20:09:28 +02:00
parent 3e1abc4b2c
commit e2fb52a3ff

View File

@ -133,7 +133,7 @@ func _unhandled_input(event: InputEvent) -> void:
if camera == null: if camera == null:
return return
if camera.zoom.x >= 1: if camera.zoom.x >= 2:
return return
else: else:
camera.zoom += Vector2(event.factor, event.factor) * 0.01 camera.zoom += Vector2(event.factor, event.factor) * 0.01
@ -141,7 +141,7 @@ func _unhandled_input(event: InputEvent) -> void:
if camera == null: if camera == null:
return return
if camera.zoom.x <= 0.2: if camera.zoom.x <= 0.1:
return return
else: else:
camera.zoom -= Vector2(event.factor, event.factor) * 0.01 camera.zoom -= Vector2(event.factor, event.factor) * 0.01