forked from team-sg/hero-mark-2
great job!
This commit is contained in:
parent
6fdd5b5510
commit
7240402776
8 changed files with 29 additions and 5 deletions
|
@ -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()
|
||||
|
|
|
@ -76,6 +76,7 @@ material = SubResource( 7 )
|
|||
position = Vector2( 0, -1 )
|
||||
frames = SubResource( 5 )
|
||||
animation = "key"
|
||||
frame = 5
|
||||
playing = true
|
||||
centered = false
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue