gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Palette info in tile memory

#44290 - Pacifist - Tue May 31, 2005 6:22 pm

So I discovered yesterday that the DS stores the palette for backgrounds along with the tiles.

I store my tiles in the first first block of memory and the map in the second block.

This works fine until my tile data starts breaking into the 2nd section of the first block. Apparently the first bytes of this section are used to store the palette as now my tiles are replaced with the palette info.

I am planning to store my tiles 'around' the palette. That is, break them into two chunks, one stored before the palette and one stored after the palette.

Is there a cleaner, more standard, solution?

#44363 - josath - Wed Jun 01, 2005 12:03 am

store your map in the first block, and your tiles in the second block, and keep the 3rd, 4th, ... blocks empty and let the tiles use them also

#44419 - Pacifist - Wed Jun 01, 2005 5:54 pm

aha that makes the sense. thanks