feat: added rocket noises and smoke trails and adjusted AoE of rockets and damage falloff on AoE

This commit is contained in:
DottsGit
2026-06-05 13:32:10 -04:00
parent a85e0952c5
commit 6af87eb7bd
28 changed files with 259 additions and 14 deletions
+5 -2
View File
@@ -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()