forked from team-sg/hero-mark-2
moved debug to scene
This commit is contained in:
parent
42acd93b1d
commit
56d03ac23d
4 changed files with 122 additions and 25 deletions
11
game.gd
11
game.gd
|
@ -109,17 +109,6 @@ 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"))
|
||||
#Restart scene
|
||||
if Input.is_action_just_pressed("debug_restart"):
|
||||
if Game.score > Game.high_score: Game.high_score = Game.score
|
||||
Game.score = 0
|
||||
Game.golds = 0
|
||||
Game.stars = [false,false,false,false,false]
|
||||
Game.shards = 0
|
||||
Game.arrows = 0
|
||||
Game.lives = 2
|
||||
Game.ac_climb.stop()
|
||||
get_tree().reload_current_scene()
|
||||
#Fullscreen
|
||||
if Input.is_action_just_pressed("fullscreen"):
|
||||
print(fullscreen)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue