*sob*
Well gee. I wonder why the heck my test item here would never show.
Item_Heart .byte %00000000; ........ .byte %00000000; .xx..xx. .byte %00000000; xxxxxxxx .byte %00000000; .xxxxxx. .byte %00000000; ..xxxx.. .byte %00000000; ...xx... .byte %00000000; ........
Excuse me while I put my head in the oven.
So anyway. Once I actually filled in those magic zeros. ... Something started to display, but not the entire item.
At first it looked like it might be upside down, but closer examination looks like lost lines.
*tests*
Ok, maybe it's both.
AH!
The scanline counter! Skipdraw is dependant on the number of lines remaining, and I've been decrementing the lines EVERY scanline. For some reason I thought I was being smart.
Obviously this is going to omit every second line of the sprite, since they're updated every second line. Additionally, the lines that are skipped will alternate depending on what line (Even/odd) the sprite starts on.
So I should be decrementing the scanline count after every scanline-pair (So after hitting up skipdraw on Line2, before starting line 1 of the next pair.)
I should be able to fix this now.
Version 0.009 incoming.
*edit*
Incoming probably tomorrow.
Counting scanline-pairs doesn't seem right either.

0 Comments
Recommended Comments
There are no comments to display.