Fixed initial double shot issue; tweaked feel of weapons.
This commit is contained in:
parent
4f3839448b
commit
30619bc7c1
5 changed files with 9 additions and 9 deletions
|
|
@ -21,8 +21,8 @@ func shoot():
|
|||
# Calculate index relative to center (0 = center, -1/+1 = first from center)
|
||||
var index_from_center: float = b - center_index
|
||||
|
||||
# Calculate timing offset for staggered firing
|
||||
var time_offset: float = index_from_center * weapon_data.stagger_offset
|
||||
# Calculate timing offset for staggered firing (center-first, pairs outward)
|
||||
var time_offset: float = abs(index_from_center) * weapon_data.stagger_offset
|
||||
|
||||
# Calculate horizontal offset for this bullet (symmetrical: left=-ve, right=+ve)
|
||||
var bullet_horizontal_offset: float = index_from_center * weapon_data.horizontal_offset
|
||||
|
|
@ -51,5 +51,5 @@ func shoot():
|
|||
if weapon_data.stagger_animation:
|
||||
bullet.set_animation_offset(index_from_center * weapon_data.stagger_offset)
|
||||
|
||||
# Subtract projectile spacing from current Player travel for next shot
|
||||
player.travel -= weapon_data.spacing
|
||||
# Reset travel after firing to prevent multiple bursts per tap
|
||||
player.travel = 0.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue