mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
added springs
This commit is contained in:
parent
62762082f7
commit
e08c2c3ef2
19 changed files with 201 additions and 16 deletions
16
Pegs/Yellow/Powerups/Spring/Springs.gd
Normal file
16
Pegs/Yellow/Powerups/Spring/Springs.gd
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
extends StaticBody2D
|
||||
|
||||
func _ready() -> void:
|
||||
position = Vector2(0, 184)
|
||||
|
||||
func explode():
|
||||
queue_free()
|
||||
|
||||
func make_green():
|
||||
for child in get_children():
|
||||
if child.has_method("animate"):
|
||||
child.animate()
|
||||
$DeathTimer.start()
|
||||
|
||||
func spring():
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue