mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 14:49:40 +02:00
Better aiming (lower tank position - more force)
This commit is contained in:
@@ -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
Binary file not shown.
Reference in New Issue
Block a user