added cool animations

This commit is contained in:
zoe 2021-10-09 18:50:01 +02:00
parent 77ca16be36
commit 6cb03fda72
41 changed files with 569 additions and 19 deletions

View file

@ -18,11 +18,12 @@ func make_green():
var main = get_tree().current_scene
main.add_child(green_peg)
var Powerups = preload("res://Pegs/Yellow/PowerupCards.tscn")
var powerups = Powerups.instance()
powerups.position = global_position
var Powerup = load(GameStats.current_powerup)
var powerup = Powerup.instance()
main.add_child(powerups)
powerup.global_position = global_position
main.add_child(powerup)
#finally delete the old peg
queue_free()