diff --git a/ai.asm b/ai.asm index 95feadc..08a75da 100644 --- a/ai.asm +++ b/ai.asm @@ -127,24 +127,27 @@ shootingLeftAtThisMomentOfTime firstShoot ; compare the x position with the middle of the screen - lda xTanksTableH,x - cmp #>(screenwidth/2) - bne @+ - lda xTanksTableL,x - cmp #<(screenwidth/2) + lda LowResDistances,x + cmp #(screenwidth/8) ; screenwidth/2 but LowResDistances are already /4 @ bcc tankIsOnTheRight ; enemy tank is on the left - randomize 95 125 + ;randomize 95 125 + lda RANDOM ; Shorter an faster randomize + and #%00011111 ; 0 - 31 + adc #95 ; Carry doesn't matter :) sta NewAngle bne forceNow tankIsOnTheRight - randomize 55 85 + ;randomize 55 85 + lda RANDOM ; Shorter an faster randomize + and #%00011111 ; 0 - 31 + adc #54 ; Carry doesn't matter :) sta NewAngle forceNow - mwa #100 RandBoundaryLow + mwa #200 RandBoundaryLow mwa #800 RandBoundaryHigh ;ldx TankNr ;this is possibly not necessary jsr RandomizeForce diff --git a/scorch.bin b/scorch.bin index 44f8c01..e8df9f6 100644 Binary files a/scorch.bin and b/scorch.bin differ diff --git a/scorch.xex b/scorch.xex index d6bafbf..79f8300 100644 Binary files a/scorch.xex and b/scorch.xex differ