Jump to content

Mord's Blog

  • entries
    170
  • comments
    93
  • views
    98,669

*sob*

Sign in to follow this  
Mord

233 views

:x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x :x

 

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.

 

:dunce:

 

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. :ponder:

 

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. :dunce: 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. :ponder: Version 0.009 incoming.

 

*edit*

 

Incoming probably tomorrow. :ponder: Counting scanline-pairs doesn't seem right either.

Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...