Improves projectile handling and modifiers

Refactors projectile spawning to allow for customized spawn locations and stat assignment.

Applies modifiers to projectiles at the time of spawning, enabling dynamic adjustments to projectile behavior.
This commit is contained in:
Dan Baker 2025-05-09 13:42:09 +01:00
parent 70839387ca
commit fac3327c22
6 changed files with 74 additions and 11 deletions

View file

@ -10,6 +10,7 @@ var emitting = true
var final_goal: Vector2
@export var angle_var: float = 15
@onready var line: Line2D = $Line2D
#@onready var particles: CPUParticles2D = $Particles
func _ready():
line.width = 2
@ -48,6 +49,7 @@ func update_points():
curr_line_len = start_point.length()
points.append(final_goal)
#particles.position = final_goal
func set_line_width(amount):
line.width = amount