pausing only possible in map.gd
This commit is contained in:
parent
aa86cbc928
commit
7b6d0197cd
8 changed files with 111 additions and 29 deletions
|
@ -132,9 +132,6 @@ func has_collection_bonus():
|
|||
|
||||
func _physics_process(delta):
|
||||
if Debug.entry == false:
|
||||
# restart level
|
||||
if Input.is_action_just_pressed("restart") && can_pause:
|
||||
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"))
|
||||
|
@ -145,7 +142,3 @@ func _physics_process(delta):
|
|||
OS.set_window_fullscreen(true)
|
||||
else:
|
||||
OS.set_window_fullscreen(false)
|
||||
#Pause
|
||||
if Input.is_action_just_pressed("pause") && can_pause && !get_tree().paused:
|
||||
var viewport = get_parent().get_node("Main/Control/ViewportContainer/Viewport")
|
||||
viewport.add_child(pause_screen.instance())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue