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
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue