#20201 - CyberSlag5k - Tue May 04, 2004 6:24 pm
I've been trying to get text backgrounds greater than 256x256 in size up and running. I have the basic theory and I've got 512x256 really close, however I am experiencing a bit of an anomaly. The left half of the map is fine, but the right half is shifted down one row, as seen here:
http://homepages.udayton.edu/~pateramj/1.bmp
I load the map data like this:
towerMap is the map data and mapData 1 and 2 are pointers to screen base blocks. Just doing it by hand, everything looks fine to me. Then again, I am but a humble padawan learner when it comes to the art of gba dev. Might on of you jedi masters point out my mistake?
_________________
When you find yourself in the company of a halfling and an ill-tempered Dragon, remember, you do not have to outrun the Dragon...
http://homepages.udayton.edu/~pateramj/1.bmp
I load the map data like this:
Code: |
for(int i = 0; i < 32; i++)
for(int j = 0; j < 32; j++) mapData1[j + i*32] = towerMap[j + i*64]; for(int i = 0; i < 32; i++) for(int j = 32; j < 64; j++) mapData2[j + i*32] = towerMap[j + i*64]; |
towerMap is the map data and mapData 1 and 2 are pointers to screen base blocks. Just doing it by hand, everything looks fine to me. Then again, I am but a humble padawan learner when it comes to the art of gba dev. Might on of you jedi masters point out my mistake?
_________________
When you find yourself in the company of a halfling and an ill-tempered Dragon, remember, you do not have to outrun the Dragon...