mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
23 lines
494 B
GDScript
23 lines
494 B
GDScript
extends TextureButton
|
|
|
|
export var powerup = "res://Pegs/Yellow/Powerups/Scattershot/Scattershot.tscn"
|
|
|
|
var spawn_position = Vector2() setget set_spawn_position, get_spawn_position
|
|
|
|
func _ready() -> void:
|
|
$AnimationPlayer.play("Show")
|
|
|
|
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.current_powerup = powerup
|
|
GameStats.pick_powerup()
|
|
|
|
queue_free()
|