make restart a regular feature outside of debug
This commit is contained in:
parent
126f170489
commit
e744920cb9
3 changed files with 4 additions and 4 deletions
|
@ -39,9 +39,6 @@ func _physics_process(delta):
|
|||
#Show console
|
||||
if Input.is_action_just_pressed("debug_show"):
|
||||
console.visible = !console.visible
|
||||
#Restart scene
|
||||
if Input.is_action_just_pressed("debug_restart"):
|
||||
Game.call_deferred("restart_level")
|
||||
#Move player to mouse
|
||||
if Input.is_action_pressed("debug_move_player"):
|
||||
Game.get_map().get_node("Player").position = get_viewport().get_mouse_position()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue