mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
more sfx
This commit is contained in:
parent
e08c2c3ef2
commit
7b67b3aef6
24 changed files with 238 additions and 167 deletions
|
|
@ -23,6 +23,15 @@ func make_green():
|
|||
|
||||
powerup.global_position = global_position
|
||||
|
||||
# has to run before adding powerup as child
|
||||
# because adding the powerup changes powerup_active to true
|
||||
if !GameStats.powerup_active:
|
||||
var SFX = preload("res://Pegs/Yellow/Powerups/PowerupSFX.tscn")
|
||||
var sfx = SFX.instance()
|
||||
main.add_child(sfx)
|
||||
sfx.global_position = global_position
|
||||
sfx.play(0)
|
||||
|
||||
main.add_child(powerup)
|
||||
|
||||
#finally delete the old peg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue