forked from team-sg/hero-mark-2
game.gd cleaning and partial results screen implementation
This commit is contained in:
parent
b126484109
commit
e2b3db0b93
16 changed files with 425 additions and 436 deletions
16
menus/results_icon.gd
Normal file
16
menus/results_icon.gd
Normal file
|
@ -0,0 +1,16 @@
|
|||
extends Sprite
|
||||
|
||||
|
||||
onready var filled_sprite = $FilledSprite
|
||||
onready var animation_player = $AnimationPlayer
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
filled_sprite.texture = texture
|
||||
|
||||
|
||||
func collect() -> void:
|
||||
animation_player.play("collect")
|
||||
for child in get_children():
|
||||
if child is CPUParticles2D:
|
||||
child.emitting = true
|
Loading…
Add table
Add a link
Reference in a new issue