#88632 - Azenris - Tue Jun 20, 2006 6:30 pm
Sorry Wrong Forum, can someone move this thread
I'm using MODE_4.
What happens is weird, and im unsure why its happening, prolly sommet simple too :(
But when I display a sprite to screen only the first colour is used and written to both pixels (you have to write two pixels at a time in mode 4.
so, if i was to make two pixels [R][Y] on the screen it would do [R][R] and you would see not yellow, only the red shows :/
What stupid mistake am i making :p
Last edited by Azenris on Tue Jun 20, 2006 6:33 pm; edited 2 times in total
I'm using MODE_4.
What happens is weird, and im unsure why its happening, prolly sommet simple too :(
But when I display a sprite to screen only the first colour is used and written to both pixels (you have to write two pixels at a time in mode 4.
so, if i was to make two pixels [R][Y] on the screen it would do [R][R] and you would see not yellow, only the red shows :/
Code: |
SetGBAMode(MODE_4 | BG2_ENABLE | OBJ_ENABLE | OBJ_MAP_1D); for(loop = 0; loop < 256; loop++) { OBJ_PaletteMem[loop] = object_Palette[loop]; } for (loop = 0; loop < 256; loop++) { BG_PaletteMem[loop] = background_Palette[loop]; } memcpy( (u16 *)0x06014000, &ballData, sizeof(ballData) ); sprites[0].attribute0 = COLOR_256 | SQUARE | 100; sprites[0].attribute1 = SIZE_8 | 100; sprites[0].attribute2 = 512; WaitForVsync(); DrawOAM(); |
What stupid mistake am i making :p
Last edited by Azenris on Tue Jun 20, 2006 6:33 pm; edited 2 times in total