#55172 - Teeth - Mon Sep 26, 2005 1:27 am
Hi all.
Sorry if this is a garishly noobish question. I've done some development on a system that's supposedly similar to the megadrive so I'm not an absolute stranger to tiled scrolling maps. However, I'm new to Nintendo hardware, and have never worked on GBA before, let alone DS. The question is: am I doing this right?
I've got everything working fine. What I've done is modify the complex2D example to run a single scrolling map. The 128x128 map is currently just defined as a global (the final intent being that the map is loaded in from the rom, obviously) and I copy the map data to whatever rows or colums are coming into view when I scroll the screen. I'm using a 32x32 bg just for testing so obviously when I print my x scroll it's visible on the screen. Not too worried about this right now; my main question is, is this the done thing? Or should I be loading in a 32x32 chunk of a map at a time into a 2x2 group of 32x32 bg maps?
I'm guessing that in general, you'd load the map from ROM into the 4MB of RAM that you've got before you start, and then do more or less what I'm doing now?
Thanks!
Sorry if this is a garishly noobish question. I've done some development on a system that's supposedly similar to the megadrive so I'm not an absolute stranger to tiled scrolling maps. However, I'm new to Nintendo hardware, and have never worked on GBA before, let alone DS. The question is: am I doing this right?
I've got everything working fine. What I've done is modify the complex2D example to run a single scrolling map. The 128x128 map is currently just defined as a global (the final intent being that the map is loaded in from the rom, obviously) and I copy the map data to whatever rows or colums are coming into view when I scroll the screen. I'm using a 32x32 bg just for testing so obviously when I print my x scroll it's visible on the screen. Not too worried about this right now; my main question is, is this the done thing? Or should I be loading in a 32x32 chunk of a map at a time into a 2x2 group of 32x32 bg maps?
I'm guessing that in general, you'd load the map from ROM into the 4MB of RAM that you've got before you start, and then do more or less what I'm doing now?
Thanks!