Hello all,
I've been working on a game and I'm using TJ's skipDraw routine to draw the player graphics. It's a great routine, but the one drawback is that all graphics have to be located in the upper portion of a page for the dcp to work correctly. This doesn't leave too much room for graphics (I need about 16 8x8 sprites). How do people get around this limitation (if I understand it correctly)? Is the only solution to store graphics in the upper portion of mulitple pages? I was hoping
Here is a version of DoDraw for multi-colour sprites (untested):
lda #SPRITEHEIGHT
dcp SpriteEnd
bcs DoDraw
SLEEP 9
lda #0
beq EndDraw
DoDraw
lda (SpriteColorPtr),Y
sta COLUP0
lda (SpriteDataPtr),Y
EndDraw
sta GRP0
It takes 26 cycles though, so probably not what you want!
Chris