Subject: Re: [stella] Sprite graphics From: "Andrew Davie" <atari2600@xxxxxxxxxxxxx> Date: Wed, 13 Oct 2004 21:06:21 +1100 |
Well... now I've gotten myself into a new problem and I don't know how to remedy it. I'm using the simple code from the 2600 Programming for Newbies tutorial to move the Bad Llama sprite across the screen, and this subroutine is giving me problems:
PositionSprite sta WSYNC ; (4) ;---------------------------- ; Pass X register holding desired X position of sprite! lda Divide15,x ; xPosition / 15... tax SimpleLoop dex bne SimpleLoop
sta RESP1 ; start drawing the sprite rts
The problem is that once Bad Llama gets about halfway across the screen, the SimpleLoop starts taking too long and the kernel makes an extra scanline, which goes away once Bad Llama resets to being on the left side of the screen. I've wracked my brain for a good hour and can't come up with a quicker way to do this... how do the pros do it?
Thanks for letting me ask dumb beginner questions when I don't understand things, Kevin
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://stella.biglist.com
--+----------------------------------------------------------------
You are subscribed as: atari2600@xxxxxxxxxxxxx
To unsubscribe, send email to:
stella-unsub-102616@xxxxxxxxxxxxxxxxxx
Or go to:
http://stella.biglist.com/unsub/stella/atari2600@xxxxxxxxxxxxx
--+--
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] Sprite graphics, Andrew Davie | Thread | My second game, Shrek |
Re: [stella] Sprite graphics, Andrew Davie | Date | COA controls, Shrek |
Month |