#177075 - blessingta@hotmail.co.uk - Tue Dec 06, 2011 2:08 am
I'm trying to render on different layers but what's happening is that I dont know where I can make the layers point in the oam data where I store my sprites (not the memory address as its doing now)
//all the layers shown below are pointing to the character data instead:
// how do i make them point the prite location of the memory
#define OBJ_32BIT_SPRITE (unsigned int*)0x06010000
//all the layers shown below are pointing to the character data instead:
// how do i make them point the prite location of the memory
#define OBJ_32BIT_SPRITE (unsigned int*)0x06010000
Code: |
// Graphics mode controls //Pointer to area which controls the graphics modes REG_DISPCNT = (BG3_ENABLE | BG2_ENABLE | BG1_ENABLE | BG0_ENABLE | MODE_0); REG_BG1CNT = (4 << 8); //point to the sprite memoory location REG_BG2CNT = (4 << 8); //point to the sprite memoory location REG_BG2CNT = (4 << 8); //point to the sprite memoory location REG_BG3CNT = (4 << 8); //point to the sprite memoory location |