15 lines
211 B
GDScript
15 lines
211 B
GDScript
extends CPUParticles2D
|
|
|
|
|
|
@export var label := Label
|
|
|
|
var score := 0
|
|
|
|
func _ready() -> void:
|
|
emitting = true
|
|
label.text = "+" + str(score)
|
|
|
|
func _process(delta: float) -> void:
|
|
if not emitting:
|
|
queue_free()
|