#4009 - Ninja - Sat Mar 15, 2003 7:58 pm
Hi all. I am trying to get a 32x64 sprite (4 bit color) to display properly, but am having a great deal of trouble doing it. (Probably because I haven't slept in a good 28 hours). I was wondering if one of you would help me out a little?
I am using a 1D array, in Mode 4. I have my array set up like this:
I am right positive I am writing to the wrong array section, but my tired mind is a little too overworked to figure out the correct formula, an dmy inexperience with graphics isn't helping much.
EDIT: Sorry, I should probably mention that I am seeing the sprite, and in proper dimensions, but the data is corrupted, as I am seeing large blocks of garbage data colored roughly like my sprite.
I am using a 1D array, in Mode 4. I have my array set up like this:
Code: |
InitializeSprites(); sprites[0].attribute0 = COLOR_16 | TALL | y; sprites[0].attribute1 = SIZE_64 | x; sprites[0].attribute2 = 512; int size = 512; for(loop = 512*16; loop < size; loop++) { OAMdata[loop] = obj0[loop]; ) while(1) { CopyOAM(); WaitForVblank(); } |
I am right positive I am writing to the wrong array section, but my tired mind is a little too overworked to figure out the correct formula, an dmy inexperience with graphics isn't helping much.
EDIT: Sorry, I should probably mention that I am seeing the sprite, and in proper dimensions, but the data is corrupted, as I am seeing large blocks of garbage data colored roughly like my sprite.