#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?
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?