Updated architecture so WeaponComponent uses an exported array to store
weapon resources.
This commit is contained in:
parent
63ed0aae3a
commit
cf172bc546
7 changed files with 88 additions and 36 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue