killing is a messy business
This commit is contained in:
parent
19465f37ca
commit
a40347a52f
6 changed files with 39 additions and 1 deletions
16
objects/player/player_stain.gd
Normal file
16
objects/player/player_stain.gd
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue