mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
powerup system
This commit is contained in:
parent
c8747328cf
commit
77ca16be36
149 changed files with 2472 additions and 331 deletions
15
Pegs/Yellow/PowerupCard.gd
Normal file
15
Pegs/Yellow/PowerupCard.gd
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
extends TextureButton
|
||||
|
||||
var spawn_position = Vector2() setget set_spawn_position, get_spawn_position
|
||||
|
||||
func set_spawn_position(value):
|
||||
spawn_position = value
|
||||
|
||||
func get_spawn_position():
|
||||
return spawn_position
|
||||
|
||||
|
||||
func _on_TextureButton_pressed() -> void:
|
||||
get_tree().paused = false
|
||||
GameStats.pick_powerup()
|
||||
queue_free()
|
||||
Loading…
Add table
Add a link
Reference in a new issue