Better aiming (lower tank position - more force)

This commit is contained in:
Pecusx
2022-08-01 23:26:06 +02:00
parent 84da6fb7a0
commit 3a836fa072
2 changed files with 6 additions and 1 deletions
+6 -1
View File
@@ -616,10 +616,15 @@ skipThisPlayer
lda OptionsTable+2 ; selected gravity lda OptionsTable+2 ; selected gravity
asl asl
tay tay
; force correction - lower tank Y position - higher possible force
clc
lda #screenheight
sbc Ytankstable,x
sta temp2
clc clc
lda AIForceTable,y lda AIForceTable,y
sta RandBoundaryLow sta RandBoundaryLow
adc #60 adc temp2
sta RandBoundaryHigh sta RandBoundaryHigh
lda AIForceTable+1,y lda AIForceTable+1,y
sta RandBoundaryLow+1 sta RandBoundaryLow+1
BIN
View File
Binary file not shown.