1 parent
bca5786470
commit
08138ab354
5 files changed
+58
-5
No files matched your search
@@ -44,6 +44,9 @@ func on_death():
|
||||
position = %LevelStart.position
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if Input.is_action_just_released("restart") or (Input.is_action_pressed("controller_restart_left") and Input.is_action_pressed("controller_restart_right")):
|
||||
get_tree().reload_current_scene()
|
||||
|
||||
if Input.is_action_just_pressed("jump"):
|
||||
if is_on_floor():
|
||||
velocity.y = JUMP_VELOCITY
|
||||
|
||||
Reference in new issue
Block a user