forked from team-sg/hero-mark-2
begin work on results screen
This commit is contained in:
parent
e4168e1260
commit
435855cd5b
4 changed files with 443 additions and 227 deletions
|
@ -1,16 +1,9 @@
|
|||
extends Sprite
|
||||
extends Node2D
|
||||
|
||||
|
||||
onready var filled_sprite = $FilledSprite
|
||||
onready var animation_player = $AnimationPlayer
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
filled_sprite.texture = texture
|
||||
onready var anims = $AnimationPlayer
|
||||
export var number = 0
|
||||
|
||||
|
||||
func collect() -> void:
|
||||
animation_player.play("collect")
|
||||
for child in get_children():
|
||||
if child is CPUParticles2D:
|
||||
child.emitting = true
|
||||
if Game.shards_collected[number] == true:
|
||||
anims.play("collect")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue