12 lines
282 B
GDScript3
12 lines
282 B
GDScript3
|
|
class_name EnemyExplosionVFX
|
||
|
|
extends LightBurstVFX
|
||
|
|
|
||
|
|
|
||
|
|
func _init() -> void:
|
||
|
|
color = Color(1.0, 0.15, 0.2)
|
||
|
|
|
||
|
|
|
||
|
|
static func spawn(parent: Node, world_position: Vector2) -> void:
|
||
|
|
var vfx: EnemyExplosionVFX = EnemyExplosionVFX.new()
|
||
|
|
vfx.position = world_position
|
||
|
|
parent.add_child(vfx)
|