godot-shooter / files / effects / SmallExplosion.gd
SmallExplosion.gd
| 1 | extends CPUParticles2D |
| 2 | |
| 3 | signal explosion_done |
| 4 | |
| 5 | func _ready() -> void: |
| 6 | one_shot = true |
| 7 | |
| 8 | func _on_Timer_timeout() -> void: |
| 9 | emit_signal("explosion_done") |
| 10 | queue_free() |