great job!

This commit is contained in:
pennyrigate 2024-05-05 20:12:18 -04:00
parent 6fdd5b5510
commit 7240402776
8 changed files with 29 additions and 5 deletions

View file

@ -27,4 +27,6 @@ func _on_Area2D_body_entered(body: Node) -> void:
STATIC.pitch = -1.0
STATIC.timeout = Time.get_ticks_msec() + TIMEOUT
Audio.play_sound(Audio.a_key,Audio.ac_collectible, pow(SEMITONE, STATIC.pitch))
if Game._get_shards() >= 5 && Game.keys == 50:
Audio.great_job()
queue_free()

View file

@ -76,6 +76,7 @@ material = SubResource( 7 )
position = Vector2( 0, -1 )
frames = SubResource( 5 )
animation = "key"
frame = 5
playing = true
centered = false

View file

@ -17,4 +17,6 @@ func _on_Area2D_body_entered(body):
Audio.play_shard_sound()
Game.score += 500
Game.shards_collected[number] = true
if Game._get_shards() >= 5 && Game.keys == 50:
Audio.great_job()
queue_free()