#160820 - BigKevSexyMan - Wed Jul 23, 2008 1:06 am
First off, I'll start with what I currently have.
Now, I'm using a file that I converted using grit and I'm not using any form of compression. I converted using 256 color tiled 8bpp, and I'm not using any metamap features or tile reduction.
Now, after I load all that and run the program I get a semi-jumbled mess on my screen. What am I doing wrong? Any help would be appreciated.
Code: |
powerON(POWER_ALL_2D); irqInit(); irqEnable(IRQ_VBLANK); lcdMainOnBottom(); vramSetMainBanks(VRAM_A_MAIN_BG_0x06000000, VRAM_B_MAIN_BG_0x06020000, VRAM_C_MAIN_BG_0x06040000, VRAM_D_LCD); vramSetBankE(VRAM_E_MAIN_SPRITE); videoSetMode(MODE_5_2D | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D ); videoSetModeSub(MODE_4_2D | DISPLAY_BG3_ACTIVE); BG3_CR = BG_BMP8_512x256; BG3_XDX = 1 << 8; BG3_XDY = 0; BG3_YDX = 0; BG3_YDY = 1 << 8; BG3_CX = 0; BG3_CY = 0; BG3_X0 = 0; BG3_Y0 = 0; dmaCopyHalfWords(DMA_CHANNEL, scrollingbackgroundTiles, &BG_GFX[0], 128000); dmaCopyHalfWords(DMA_CHANNEL, scrollingbackgroundPal, &BG_PALETTE[0], 256*2); |
Now, I'm using a file that I converted using grit and I'm not using any form of compression. I converted using 256 color tiled 8bpp, and I'm not using any metamap features or tile reduction.
Now, after I load all that and run the program I get a semi-jumbled mess on my screen. What am I doing wrong? Any help would be appreciated.