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

Binary file not shown.