Cleaned up resource defaults and names; path references.
This commit is contained in:
parent
d0664a87fa
commit
2c2b23f0bb
5 changed files with 6 additions and 5 deletions
|
|
@ -11,6 +11,6 @@ damage = 2
|
||||||
speed = 500
|
speed = 500
|
||||||
spacing = 25.0
|
spacing = 25.0
|
||||||
origin = -12
|
origin = -12
|
||||||
horizontal_offset = 7.5
|
horizontal_offset = 10.0
|
||||||
stagger_offset = 0.35
|
stagger_offset = 0.35
|
||||||
metadata/_custom_type_script = "uid://7n1itonn35fm"
|
metadata/_custom_type_script = "uid://7n1itonn35fm"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("2_syw6j")
|
script = ExtResource("2_syw6j")
|
||||||
shot_name = "vanguard"
|
shot_name = "tri"
|
||||||
bullet_scene = ExtResource("1_07hyh")
|
bullet_scene = ExtResource("1_07hyh")
|
||||||
damage = 3
|
damage = 3
|
||||||
speed = 450
|
speed = 450
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,6 @@ speed = 500
|
||||||
projectiles = 5
|
projectiles = 5
|
||||||
spacing = 30.0
|
spacing = 30.0
|
||||||
origin = -15
|
origin = -15
|
||||||
horizontal_offset = 8.5
|
horizontal_offset = 8.25
|
||||||
stagger_offset = 0.2
|
stagger_offset = 0.5
|
||||||
metadata/_custom_type_script = "uid://7n1itonn35fm"
|
metadata/_custom_type_script = "uid://7n1itonn35fm"
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ func shoot():
|
||||||
|
|
||||||
# Calculate horizontal offset for this bullet (symmetrical: left=-ve, right=+ve)
|
# Calculate horizontal offset for this bullet (symmetrical: left=-ve, right=+ve)
|
||||||
var bullet_horizontal_offset: float = index_from_center * weapon_data.horizontal_offset
|
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)
|
# Calculate vertical offset from center point (symmetrical vertical spread)
|
||||||
var distance_from_center: float = abs(index_from_center)
|
var distance_from_center: float = abs(index_from_center)
|
||||||
|
|
|
||||||
|
|
@ -14,4 +14,4 @@ extends Resource
|
||||||
|
|
||||||
@export_category("Spread")
|
@export_category("Spread")
|
||||||
@export var horizontal_offset: float = 6.5 # Horizontal distance between projectiles
|
@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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue