Beginning to update weapon components
This commit is contained in:
parent
db57a0234e
commit
e3fb082139
11 changed files with 66 additions and 37 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue