Skip to content

Commit 3d3204d

Browse files
authored
Afterburner dynamics
Changed Ship dynamics of Afterburner
1 parent 98a81c3 commit 3d3204d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ThumbCommander/ThumbCommander.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def run(self, laser=[]):
382382
if (a[c] > (1000<<16)) or (a[c] < -(1000<<16)):
383383
a[c+3] = -a[c+3]
384384
a[c] += a[c+3]
385-
a[c] += fpmul((player_angle[c]), player_speed)
385+
a[c] += fpmul((player_angle[c])//2, player_speed)
386386
a[2] -= fpmul(a[5], player_speed)
387387

388388
# get sprite in correct size
@@ -481,7 +481,7 @@ def run(self, laser=[]):
481481
# move in x,y,z-axis forward
482482
for c in range(2):
483483
# xy displacement based on player_angle * player_speed
484-
e[c] += (player_angle[c] * player_speed) >> 16
484+
e[c] += (player_angle[c] // 2 * player_speed) >> 16
485485
e[2] -= fpmul(2048, player_speed)
486486

487487
# calc displacement of ship form orientation & thrust if not exploding

0 commit comments

Comments
 (0)