final is here
This commit is contained in:
14
script/score_particles.gd
Normal file
14
script/score_particles.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user