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
3
game.gd
3
game.gd
|
@ -166,6 +166,9 @@ func play_music(song):
|
|||
|
||||
func _physics_process(delta):
|
||||
if Debug.entry == false:
|
||||
# restart level
|
||||
if Input.is_action_just_pressed("restart"):
|
||||
call_deferred("restart_level")
|
||||
#CRT FILTER
|
||||
if Input.is_action_just_pressed("crt"):
|
||||
viewport_container.material.set_shader_param("enabled",!viewport_container.material.get_shader_param("enabled"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue