What's that smell?

This commit is contained in:
Haze Weathers 2023-09-10 23:26:21 -04:00
parent dde551db56
commit 8c818ac174
16 changed files with 99 additions and 2 deletions

View file

@ -0,0 +1,16 @@
extends CPUParticles2D
const BloodSpray := preload("res://objects/environment/blood/blood_spray.tscn")
export var spray_ammount: int = 16
export var spray_velocity: float = 80
func _ready() -> void:
for i in spray_ammount:
var spray: RigidBody2D = BloodSpray.instance()
spray.global_position = global_position
spray.linear_velocity = Vector2(spray_velocity, 0.0).rotated(randf() * TAU)
get_parent().add_child(spray)