moved debug to scene

This commit is contained in:
pennyrigate 2023-01-07 14:23:37 -05:00
parent 42acd93b1d
commit 56d03ac23d
4 changed files with 122 additions and 25 deletions

11
game.gd
View file

@ -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)