What's that smell?
This commit is contained in:
parent
dde551db56
commit
8c818ac174
16 changed files with 99 additions and 2 deletions
16
objects/enemy/death_particles.gd
Normal file
16
objects/enemy/death_particles.gd
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue