#76401 - Issac - Tue Mar 21, 2006 10:33 am
Hello, I've been having some problem with graphics.. or sprites..
I'm using the Webbesen gba tutorial to figure out the sprite usage...
it works with ONE 8x8 square...
but when i try my 32x32 square.. it's all garbled...
Code:
Screen:
[Images not permitted - Click here to view it]
If anyone could help me, i'd be VERY grateful!
Ask if anything is unclear!
_________________
yeah, well, maybe... or? anyways.... eh... what was i talking about??
I'm using the Webbesen gba tutorial to figure out the sprite usage...
it works with ONE 8x8 square...
but when i try my 32x32 square.. it's all garbled...
Code:
Code: |
void maingame(){ key_poll(); u16 loop; SetMode(MODE_4 | BG2_ENABLE | OBJ_ENABLE | OBJ_MAP_1D); for (loop = 0; loop < 256; loop++) { BG_PaletteMem[loop]=bakgrund01Palette[loop]; } for (loop = 0; loop < (120*160); loop++) { FrontBuffer[loop] = bakgrund01Data[loop] ; } for(loop = 0; loop < 256; loop++) { OBJ_PaletteMem[loop] = shotPalette[loop]; } memcpy( (u16 *)0x06014100, &killerData, sizeof(killerData) ); sprites[0].attribute0 = COLOR_256 | SQUARE | 50; sprites[0].attribute1 = SIZE_32 | 50; sprites[0].attribute2 = 512; while(1) { WaitForVsync(); CopyOAM(); } } |
Screen:
[Images not permitted - Click here to view it]
If anyone could help me, i'd be VERY grateful!
Ask if anything is unclear!
_________________
yeah, well, maybe... or? anyways.... eh... what was i talking about??