mirror of
https://github.com/blondie7575/GSCats.git
synced 2025-01-06 14:31:06 +00:00
Fixed several rendering glitches
This commit is contained in:
parent
cbb90ea1aa
commit
7ba22eadda
5
Makefile
5
Makefile
@ -15,7 +15,8 @@ ADDR=800
|
||||
|
||||
PGM=gscats
|
||||
MRSPRITE=../MrSprite/mrsprite
|
||||
PALETTE=00ff00 000000 ffff00 886611 cc9933 eebb44 dd6666 ff99aa 00ff00 ffff00 ffff00 ffff00 ffff00 ffff00 ffff00 ffff00 ffffff
|
||||
CHROMA=00ff00
|
||||
PALETTE=000000 008800 886611 cc9933 eebb44 dd6666 ff99aa 00ff00 ffff00 ffff00 ffff00 ffff00 ffff00 ffff00 ffff00 ffffff
|
||||
SPRITES=SpriteBank
|
||||
|
||||
all: $(PGM) loader
|
||||
@ -46,7 +47,7 @@ clean:
|
||||
|
||||
.PHONY: art
|
||||
art:
|
||||
$(MRSPRITE) CODE "Art/*.gif" $(PALETTE)
|
||||
$(MRSPRITE) CODE "Art/*.gif" $(CHROMA) $(PALETTE)
|
||||
$(MRSPRITE) BANK "Art/*.txt" $(SPRITES)
|
||||
mv Art/$(SPRITES)00.bin .
|
||||
./MerlinToCA65.sh Art/$(SPRITES)Src.txt > spritebank.s
|
||||
|
@ -8,7 +8,9 @@ KBD = $e0c000
|
||||
KBDSTROBE = $e0c010
|
||||
COUT = $fded
|
||||
VRAM = $e12000
|
||||
SHADOWVRAM = $012000
|
||||
VRAMBANK = $e10000
|
||||
SHADOWVRAMBANK = $010000
|
||||
PRODOS = $bf00 ; MLI entry point
|
||||
PRODOSRETURN = $300 ; Indirect jump to get back to ProDOS from any bank
|
||||
|
||||
|
@ -43,6 +43,8 @@ beginGameplay:
|
||||
ldy #0
|
||||
jsr renderPlayerHeader
|
||||
|
||||
jsr protectPlayers
|
||||
|
||||
gameplayLoop:
|
||||
|
||||
jsr syncVBL
|
||||
@ -54,7 +56,6 @@ gameplayLoop:
|
||||
stz terrainDirty
|
||||
|
||||
; Render players
|
||||
jsr unrenderPlayers
|
||||
jsr renderPlayers
|
||||
|
||||
gameplayLoopKbd:
|
||||
@ -168,6 +169,7 @@ scrollMap:
|
||||
lda #$ffff
|
||||
sta mapScrollRequested
|
||||
|
||||
jsr protectPlayers
|
||||
lda #1
|
||||
sta terrainDirty
|
||||
rts
|
||||
|
766
gameobject.s
766
gameobject.s
File diff suppressed because it is too large
Load Diff
BIN
gscats.2mg
BIN
gscats.2mg
Binary file not shown.
19
player.s
19
player.s
@ -207,6 +207,25 @@ renderPlayers:
|
||||
rts
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; protectPlayers
|
||||
;
|
||||
;
|
||||
protectPlayers:
|
||||
SAVE_AXY
|
||||
|
||||
VRAM_PTR playerData
|
||||
lda #playerData+GO_BACKGROUND
|
||||
jsr protectGameObject
|
||||
|
||||
VRAM_PTR playerData+PD_SIZE
|
||||
lda #playerData+GO_BACKGROUND+PD_SIZE
|
||||
jsr protectGameObject
|
||||
|
||||
RESTORE_AXY
|
||||
rts
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; unrenderPlayers
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user