Updated architecture so WeaponComponent uses an exported array to store

weapon resources.
This commit is contained in:
Henry Faber 2026-06-20 13:05:18 +01:00
parent 63ed0aae3a
commit cf172bc546
7 changed files with 88 additions and 36 deletions

View file

@ -17,7 +17,7 @@ func tick(delta: float):
if player == null: return
# Shorten variable for accessing weapon_component for clarity
var weapon_system = weapon_component.data
var weapon_system = weapon_component.weapon_data
# Calculate ship to bullet displacement
player.ship_displacement = player.position.y - player.previous_position.y