made restart key gover the player
This commit is contained in:
parent
b65dbd834b
commit
db3ac62f27
4 changed files with 19 additions and 23 deletions
23
game.gd
23
game.gd
|
@ -58,7 +58,7 @@ func get_sector(pos):
|
|||
|
||||
#Return the current Map
|
||||
func get_map():
|
||||
return viewport.get_children()[0]
|
||||
return get_tree().get_nodes_in_group("map")[0]
|
||||
|
||||
#Go to new map
|
||||
func change_map(map):
|
||||
|
@ -107,13 +107,14 @@ func timeify(input):
|
|||
return "9:59:99"
|
||||
|
||||
func _process(delta):
|
||||
#CRT FILTER
|
||||
if Input.is_action_just_pressed("crt"):
|
||||
viewport_container.material.set_shader_param("enabled",!viewport_container.material.get_shader_param("enabled"))
|
||||
#Fullscreen
|
||||
if Input.is_action_just_pressed("fullscreen"):
|
||||
fullscreen = !fullscreen
|
||||
if fullscreen:
|
||||
OS.set_window_fullscreen(true)
|
||||
else:
|
||||
OS.set_window_fullscreen(false)
|
||||
if Debug.entry == false:
|
||||
#CRT FILTER
|
||||
if Input.is_action_just_pressed("crt"):
|
||||
viewport_container.material.set_shader_param("enabled",!viewport_container.material.get_shader_param("enabled"))
|
||||
#Fullscreen
|
||||
if Input.is_action_just_pressed("fullscreen"):
|
||||
fullscreen = !fullscreen
|
||||
if fullscreen:
|
||||
OS.set_window_fullscreen(true)
|
||||
else:
|
||||
OS.set_window_fullscreen(false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue