mirror of
https://github.com/Relintai/broken_seals_roguelike.git
synced 2024-11-14 10:57:19 +01:00
Bigger range for the camera's allowed zoom levels.
This commit is contained in:
parent
3e1abc4b2c
commit
e2fb52a3ff
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user