killing is a messy business

This commit is contained in:
Haze Weathers 2023-09-21 18:04:15 -04:00
parent 19465f37ca
commit a40347a52f
6 changed files with 39 additions and 1 deletions

View file

@ -0,0 +1,16 @@
extends Light2D
export var lifetime: float = 5.0
func _ready() -> void:
rotation = randf() * TAU
func _process(delta: float) -> void:
lifetime -= delta
if lifetime < 0.5:
scale = Vector2(lifetime * 2.0, lifetime * 2.0)
if lifetime <= 0.0:
queue_free()