feat: added rocket noises and smoke trails and adjusted AoE of rockets and damage falloff on AoE
This commit is contained in:
@@ -21,7 +21,7 @@ func _ready() -> void:
|
||||
_previous_position = global_position
|
||||
# Automatically destroy after 5 seconds to prevent leaks
|
||||
var t = get_tree().create_timer(5.0)
|
||||
t.timeout.connect(queue_free)
|
||||
t.timeout.connect(destroy)
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
# Apply gravity drop if any
|
||||
@@ -33,7 +33,7 @@ func _physics_process(delta: float) -> void:
|
||||
distance_traveled += movement.length()
|
||||
|
||||
if distance_traveled > max_range:
|
||||
queue_free()
|
||||
destroy()
|
||||
return
|
||||
|
||||
_check_collision()
|
||||
@@ -63,4 +63,7 @@ func _on_hit(result: Dictionary) -> void:
|
||||
var size = 0.4 if impact_type == "plasma" else 0.15
|
||||
ImpactSpawner.spawn(get_tree(), impact_type, result.position, result.normal, size)
|
||||
|
||||
destroy()
|
||||
|
||||
func destroy() -> void:
|
||||
queue_free()
|
||||
|
||||
Reference in New Issue
Block a user