Beginning to update weapon components

This commit is contained in:
Henry Faber 2026-06-08 13:53:13 +01:00
parent db57a0234e
commit e3fb082139
11 changed files with 66 additions and 37 deletions

View file

@ -15,7 +15,9 @@ func tick(delta: float):
# Check to see if there's a player to move
if player == null: return
# Shorten variable for accessing weapon_component for clarity
var weapon_system = weapon_component.data
# Calculate ship to bullet displacement
player.ship_displacement = player.position.y - player.previous_position.y
player.travel += abs(weapon_system.speed) * delta + (player.ship_displacement)