This commit is contained in:
2024-02-27 23:21:44 +01:00
parent ba37eca0c9
commit bfec08ff02
38 changed files with 89 additions and 92 deletions

View File

@ -37,7 +37,7 @@ func _ready():
Global.camera = self
update_look_offset()
func _unhandled_input(event):
func _unhandled_input(event: InputEvent):
if !event.is_action("look"):
return
@ -47,7 +47,7 @@ func _unhandled_input(event):
false:
end_look()
func _input(event):
func _input(event: InputEvent):
if event.is_action_pressed("zoom_in", true):
target_distance -= zoom_speed
on_distance_changed()
@ -72,7 +72,7 @@ func _input(event):
update_look_offset()
func _process(delta):
func _process(delta: float):
if !Global.player:
return