#174745 - stra?enschild - Tue Jul 13, 2010 8:12 pm
hey guys,
i ran into some problems trying to display 2 sprites on the screen.
here are my sprites functions:
with the code above i only get sprite called sprite displayed.
The sprites are .png files and were generated with grit.
i ran into some problems trying to display 2 sprites on the screen.
here are my sprites functions:
Code: |
oamInit(&oamMain, SpriteMapping_Bmp_1D_256, false);
oamEnable(&oamMain); u16* gfx = oamAllocateGfx(&oamMain, SpriteSize_32x32,SpriteColorFormat_256Color); dmaCopyHalfWords(3,fireTiles,gfx, fireTilesLen); dmaCopyHalfWords(3,firePal, SPRITE_PALETTE, firePalLen); dmaCopyHalfWords(3,spriteTiles,gfx, spriteTilesLen); dmaCopyHalfWords(3,spritePal, SPRITE_PALETTE, spritePalLen); oamSet(&oamMain,0,positionx,positiony,1,0,SpriteSize_32x32,SpriteColorFormat_256Color,gfx,0,true,false,false,false,false); oamSet(&oamMain,1, 20, 20,0,0,SpriteSize_8x8,SpriteColorFormat_256Color,gfx,0,true,false,false,false,false); |
with the code above i only get sprite called sprite displayed.
The sprites are .png files and were generated with grit.