Subject: Re: [stella] pseudoplayers From: Glenn Saunders <cybpunks@xxxxxxxxxxxx> Date: Mon, 12 Feb 2001 08:57:06 -0800 |
You'll want to store the offsets as the change from the previous line, rather than an absolute value. That way, on each scanline, you can just read the byte and dump it into HMM0 or HMM1. (You'll also store the offset in the upper 4 bits of the byte in this case.) That does also keep the ability to skew the object to be more than 8 pixels wide, like you have there.
You wouldn't have to, if your code in the kernel can take the negative of an upper nibble quickly enough. I think doing XOR #$F0 / CLC / ADC #$10 will work, and you may be able to skip the CLC if some code immediately previous (usually a compare) leaves the carry in a known state.
- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] pseudoplayers, Erik Mooney | Thread | Re: [stella] pseudoplayers, Erik Mooney |
Re: [stella] pseudoplayers, Erik Mooney | Date | Re: [stella] pseudoplayers, Erik Mooney |
Month |