#95153 - christosterone - Fri Jul 28, 2006 2:03 am
I stopped gba programming for like 6 months and now im getting back into it, but im having trouble loading the map... im retarded. i dont knwo what im doing wrong;
in map.c
in main.c
for some reason its only showing up half the pixels and blanks or something i dont know.... its probably really somehting stupid.
i think i may need to shift the bits over because ints and u16s have 1/2 the amt of bits as an int.... im not sure
i bet its really simple and im sorry to waste your time... i feel retarded
-chris
in map.c
Code: |
const unsigned int mapData[2048]=
{ 0x00a800a7,0x003600a9,0x00380037,0x003a0039,0x003c003b,0x00000000,0x00000000,0x00000000, |
in main.c
Code: |
for(loop = 0; loop < 128*128/2; loop++)
ground.mapData[loop] = mapData[loop]; |
for some reason its only showing up half the pixels and blanks or something i dont know.... its probably really somehting stupid.
i think i may need to shift the bits over because ints and u16s have 1/2 the amt of bits as an int.... im not sure
i bet its really simple and im sorry to waste your time... i feel retarded
-chris