Improved turn switching behavior

This commit is contained in:
blondie7575 2018-07-28 17:33:56 -07:00
parent 9873d92e0c
commit cf6b75fe9e
2 changed files with 13 additions and 2 deletions

View File

@ -186,7 +186,7 @@ trackActiveShot:
lda SCRATCHL
sec
sbc #140 ; Check for moving close to right edge
sbc #150 ; Check for moving close to right edge
cmp leftScreenEdge
bmi trackActiveShotDone
@ -201,7 +201,7 @@ trackActiveShotNeg:
lda SCRATCHL
clc
adc #140 ; Check for moving close to left edge
adc #150 ; Check for moving close to left edge
cmp rightScreenEdge
bpl trackActiveShotDone
stz mapScrollRequested ; Move screen left to see shot land
@ -224,10 +224,21 @@ endTurn:
endTurnRefresh:
ldy currentPlayer
beq endTurnFocusPlayer0
lda #VISIBLETERRAINWINDOW
sta mapScrollRequested
endTurnHeader:
jsr renderPlayerHeader
jsr renderInventory
stz turnRequested
rts
endTurnFocusPlayer0:
stz mapScrollRequested
bra endTurnHeader
endTurnWrap:
stz currentPlayer
bra endTurnRefresh

Binary file not shown.