cheesy demise
This commit is contained in:
parent
7a12628fa3
commit
2ca88e511f
3 changed files with 7 additions and 4 deletions
|
@ -4,6 +4,7 @@ extends Node2D
|
|||
const BloodSpray := preload("res://objects/environment/blood/blood_spray.tscn")
|
||||
|
||||
|
||||
export var spray_color := Color(0x20223aff)
|
||||
export var spray_ammount: int = 16
|
||||
export var spray_velocity: float = 80
|
||||
|
||||
|
@ -12,7 +13,7 @@ func _ready() -> void:
|
|||
$AnimatedSprite.playing = true
|
||||
for i in spray_ammount:
|
||||
var spray = BloodSpray.instance()
|
||||
spray.color = Color(0x20223aff)
|
||||
spray.color = spray_color
|
||||
spray.global_position = global_position
|
||||
spray.velocity = Vector2(randf() * spray_velocity, 0.0).rotated(randf() * TAU)
|
||||
get_parent().add_child(spray)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue