#45223 - cooky - Wed Jun 08, 2005 8:23 pm
Hi I'm having trouble with the wrapping on sprite graphics on the DS
The sprites wrap perfectly on the y axis but only wrap on the right on the x axis. I've lead to believe this code works for correst wrapping on the x axis but it doesn't seem to work.
I however don't have a gba flash cart as my old one broke. So I haven't been able to test this on hardware. It may actually work but I cannot be sure. If it does that is fine.
_________________
Rolling a six is unlikely but how do you know if you have never picked up the dice.
www.ceorron.co.uk
The sprites wrap perfectly on the y axis but only wrap on the right on the x axis. I've lead to believe this code works for correst wrapping on the x axis but it doesn't seem to work.
Code: |
oam->attribute[1] &= 0xFE00;
oam->attribute[1] |= (x & 0x01FF); |
I however don't have a gba flash cart as my old one broke. So I haven't been able to test this on hardware. It may actually work but I cannot be sure. If it does that is fine.
_________________
Rolling a six is unlikely but how do you know if you have never picked up the dice.
www.ceorron.co.uk