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 > Grit and Forming the bg manually

#167297 - Emmanuel - Sun Mar 08, 2009 2:47 pm

So I get the img.bin the map.bin and the pal.bin

How do I order the map.bin to set it correctly?

A simple memcpy sets me the map weirdly...

The size is 512x512 pixels...

My plan:
Make a collision map...
Copy map, img, and pal to dynamic arrays

Get the proper pixel color by mixing the img and map arrays with the x y positions in formulas, and then retrieve the proper palette so the color depends on the visilbe color, and not the color detection order...

This "Bg" Won't be shown, it will only be used internally...

So how is this done? Or any better ideas?