A bunch of refinements on spacing and timing!

This commit is contained in:
Henry Faber 2026-06-13 17:11:55 +01:00
parent 48a2ba3ddb
commit c91f8ab31d
2 changed files with 4 additions and 3 deletions

View file

@ -8,8 +8,9 @@ script = ExtResource("2_by0nb")
shot_name = "Stock Shot"
bullet_scene = ExtResource("1_by0nb")
speed = 500
projectiles = 5
spacing = 25.0
origin = -35
origin = -10
horizontal_offset = 6.0
stagger_offset = 0.75
stagger_offset = 0.25
metadata/_custom_type_script = "uid://7n1itonn35fm"

View file

@ -36,7 +36,7 @@ func shoot():
var vertical_offset: float = (distance_from_center * weapon_data.origin * -1) / 2
# Final position combines symmetrical horizontal spread with symmetrical vertical spacing
bullet.position = player.position + Vector2(bullet_horizontal_offset, weapon_data.origin + vertical_offset)
bullet.position = player.position + Vector2(bullet_horizontal_offset, weapon_data.origin + (vertical_offset + weapon_data.origin - total_projectiles))
# Set timing properties on the bullet
bullet.time_offset = time_offset