Cleaned up resource defaults and names; path references.

This commit is contained in:
Henry Faber 2026-06-20 15:13:28 +01:00
parent d0664a87fa
commit 2c2b23f0bb
5 changed files with 6 additions and 5 deletions

View file

@ -11,6 +11,6 @@ damage = 2
speed = 500
spacing = 25.0
origin = -12
horizontal_offset = 7.5
horizontal_offset = 10.0
stagger_offset = 0.35
metadata/_custom_type_script = "uid://7n1itonn35fm"

View file

@ -5,7 +5,7 @@
[resource]
script = ExtResource("2_syw6j")
shot_name = "vanguard"
shot_name = "tri"
bullet_scene = ExtResource("1_07hyh")
damage = 3
speed = 450

View file

@ -12,6 +12,6 @@ speed = 500
projectiles = 5
spacing = 30.0
origin = -15
horizontal_offset = 8.5
stagger_offset = 0.2
horizontal_offset = 8.25
stagger_offset = 0.5
metadata/_custom_type_script = "uid://7n1itonn35fm"

View file

@ -26,6 +26,7 @@ func shoot():
# Calculate horizontal offset for this bullet (symmetrical: left=-ve, right=+ve)
var bullet_horizontal_offset: float = index_from_center * weapon_data.horizontal_offset
print("horizontal_offset: ", weapon_data.horizontal_offset, " index: ", index_from_center, " result: ", bullet_horizontal_offset)
# Calculate vertical offset from center point (symmetrical vertical spread)
var distance_from_center: float = abs(index_from_center)

View file

@ -14,4 +14,4 @@ extends Resource
@export_category("Spread")
@export var horizontal_offset: float = 6.5 # Horizontal distance between projectiles
@export var stagger_offset: float = 0.1 # Time delay per projectile index
@export var stagger_offset: float = 0.25 # Time delay per projectile index