mirror of
https://github.com/blondie7575/GSCats.git
synced 2025-01-09 18:32:11 +00:00
Fixed projectiles in high VRAM not rendering
This commit is contained in:
parent
28c2cbae54
commit
2d58dc0862
@ -243,15 +243,12 @@ trackActiveShotDone:
|
||||
; Handles changing the active player
|
||||
;
|
||||
endTurn:
|
||||
lda #0 ; HAAAAX
|
||||
lda currentPlayer
|
||||
inc
|
||||
cmp #NUMPLAYERS
|
||||
beq endTurnWrap
|
||||
sta currentPlayer
|
||||
|
||||
; lda currentPlayer
|
||||
; inc
|
||||
; cmp #NUMPLAYERS
|
||||
; beq endTurnWrap
|
||||
; sta currentPlayer
|
||||
|
||||
endTurnRefresh:
|
||||
jsr processTurnForProjectiles
|
||||
|
||||
|
@ -437,8 +437,8 @@ unrenderGameObject:
|
||||
|
||||
; Find gameobject location in video memory
|
||||
jsr vramPtr
|
||||
cpx #0
|
||||
bmi unrenderGameobjectSkip
|
||||
cpx #$ffff
|
||||
beq unrenderGameobjectSkip
|
||||
bra unrenderGameobjectBackground
|
||||
|
||||
unrenderGameobjectSkip:
|
||||
|
BIN
gscats.2mg
BIN
gscats.2mg
Binary file not shown.
8
player.s
8
player.s
@ -278,8 +278,8 @@ protectPlayers:
|
||||
lda #playerData
|
||||
sta PARAML0
|
||||
jsr vramPtr
|
||||
cpx #0
|
||||
bmi protectPlayerNext
|
||||
cpx #$ffff
|
||||
beq protectPlayerNext
|
||||
|
||||
lda #playerData+GO_BACKGROUND
|
||||
sta PARAML0
|
||||
@ -289,8 +289,8 @@ protectPlayerNext:
|
||||
lda #playerData+PD_SIZE
|
||||
sta PARAML0
|
||||
jsr vramPtr
|
||||
cpx #0
|
||||
bmi protectPlayerDone
|
||||
cpx #$ffff
|
||||
beq protectPlayerDone
|
||||
|
||||
lda #playerData+GO_BACKGROUND+PD_SIZE
|
||||
sta PARAML0
|
||||
|
@ -670,7 +670,7 @@ protectProjectilesGotOne:
|
||||
sta PARAML0
|
||||
phx
|
||||
jsr vramPtr
|
||||
cpx #-1
|
||||
cpx #$ffff
|
||||
beq protectProjectilesOffscreen
|
||||
|
||||
lda #projectileData+GO_BACKGROUND
|
||||
|
Loading…
Reference in New Issue
Block a user