famira greengit statusgit status

This commit is contained in:
Haze Weathers 2024-07-13 00:40:34 -04:00
parent 28fb9adf28
commit 2ed1969ba1
7 changed files with 58 additions and 1 deletions

View file

@ -7,6 +7,7 @@ const BloodSpray := preload("res://objects/environment/blood/blood_spray.tscn")
export var spray_ammount: int = 16
export var spray_velocity: float = 80
export var autoplay: bool = false
export var spray_scale: float = 1.0
func _ready() -> void:
@ -17,4 +18,5 @@ func _ready() -> void:
var spray = BloodSpray.instance()
spray.global_position = global_position
spray.velocity = Vector2(randf() * spray_velocity, 0.0).rotated(randf() * TAU)
spray.scale = Vector2(spray_scale, spray_scale)
get_parent().add_child(spray)