mirror of
https://github.com/blondie7575/GSCats.git
synced 2024-06-03 09:29:29 +00:00
Changed to screen-jump shot tracking
This commit is contained in:
parent
d0c67b907d
commit
9873d92e0c
|
@ -66,7 +66,6 @@ beginGameplay:
|
||||||
gameplayLoop:
|
gameplayLoop:
|
||||||
jsr kbdScan
|
jsr kbdScan
|
||||||
jsr syncVBL
|
jsr syncVBL
|
||||||
BORDER_COLOR #$0
|
|
||||||
|
|
||||||
;;;;;;;;;;;
|
;;;;;;;;;;;
|
||||||
; Update
|
; Update
|
||||||
|
@ -119,11 +118,9 @@ gameplayLoopRender:
|
||||||
; Render the terrain if needed
|
; Render the terrain if needed
|
||||||
lda terrainDirty
|
lda terrainDirty
|
||||||
beq gameplayLoopProjectiles
|
beq gameplayLoopProjectiles
|
||||||
BORDER_COLOR #$3
|
|
||||||
; jsl renderTerrainSpans ; Part of the now disabled fill-mode renderer
|
; jsl renderTerrainSpans ; Part of the now disabled fill-mode renderer
|
||||||
jsr renderTerrain
|
jsr renderTerrain
|
||||||
stz terrainDirty
|
stz terrainDirty
|
||||||
BORDER_COLOR #$1
|
|
||||||
|
|
||||||
; Render players
|
; Render players
|
||||||
jsr renderPlayers
|
jsr renderPlayers
|
||||||
|
@ -189,10 +186,12 @@ trackActiveShot:
|
||||||
|
|
||||||
lda SCRATCHL
|
lda SCRATCHL
|
||||||
sec
|
sec
|
||||||
sbc #80 ; Check for moving past center
|
sbc #140 ; Check for moving close to right edge
|
||||||
cmp leftScreenEdge
|
cmp leftScreenEdge
|
||||||
bpl trackActiveShotCameraMove
|
bmi trackActiveShotDone
|
||||||
bra trackActiveShotDone
|
|
||||||
|
lda #80 ; Move screen right to see shot land
|
||||||
|
sta mapScrollRequested
|
||||||
|
|
||||||
trackActiveShotNeg:
|
trackActiveShotNeg:
|
||||||
|
|
||||||
|
@ -202,16 +201,10 @@ trackActiveShotNeg:
|
||||||
|
|
||||||
lda SCRATCHL
|
lda SCRATCHL
|
||||||
clc
|
clc
|
||||||
adc #80 ; Check for moving past center
|
adc #140 ; Check for moving close to left edge
|
||||||
cmp rightScreenEdge
|
cmp rightScreenEdge
|
||||||
bpl trackActiveShotDone
|
bpl trackActiveShotDone
|
||||||
|
stz mapScrollRequested ; Move screen left to see shot land
|
||||||
trackActiveShotCameraMove:
|
|
||||||
lda SCRATCHL
|
|
||||||
sbc #80
|
|
||||||
lsr
|
|
||||||
and #$fffe ; Force even
|
|
||||||
sta mapScrollRequested
|
|
||||||
|
|
||||||
trackActiveShotDone:
|
trackActiveShotDone:
|
||||||
rts
|
rts
|
||||||
|
|
BIN
gscats.2mg
BIN
gscats.2mg
Binary file not shown.
Loading…
Reference in New Issue
Block a user