mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
added cool animations
This commit is contained in:
parent
77ca16be36
commit
6cb03fda72
41 changed files with 569 additions and 19 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue