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
asl
tay
; force correction - lower tank Y position - higher possible force
clc
lda #screenheight
sbc Ytankstable,x
sta temp2
clc
lda AIForceTable,y
sta RandBoundaryLow
adc #60
adc temp2
sta RandBoundaryHigh
lda AIForceTable+1,y
sta RandBoundaryLow+1