make everything use new difficulty system

This commit is contained in:
Haze Weathers 2023-06-29 23:40:38 -04:00
parent 99f46651f9
commit 723d596893
15 changed files with 41 additions and 53 deletions

View file

@ -32,7 +32,7 @@ export var target_time_any = 0
# Called when the node enters the scene tree for the first time.
func _ready():
easy_mode_text.text = "difficulty: %s, X to change" % ["sweet", "salty", "spicy", "pungent"][Game.difficulty]
easy_mode_text.text = "difficulty: %s, Z to change" % ["sweet", "salty", "spicy", "pungent"][Game.difficulty]
Fade.fade_in(0.000000000000001)
change_current_level(Game.current_level)
Audio.ac_music.stop()
@ -55,7 +55,7 @@ func _physics_process(delta):
#Toggle lives mode
if Input.is_action_just_pressed("ui_cancel"):
Game.difficulty = (Game.difficulty + 1) % 4
easy_mode_text.text = "difficulty: %s, X to change" % ["sweet", "salty", "spicy", "pungent"][Game.difficulty]
easy_mode_text.text = "difficulty: %s, Z to change" % ["sweet", "salty", "spicy", "pungent"][Game.difficulty]
func change_current_shard(amount):
if current_shard + amount != -1 && current_shard + amount != 8: #Check if in range