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

@ -1,7 +1,12 @@
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
@ -11,5 +16,8 @@ func get_spawn_position():
func _on_TextureButton_pressed() -> void:
get_tree().paused = false
GameStats.current_powerup = powerup
GameStats.pick_powerup()
queue_free()