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 > I am hoping for a map combination...

#104683 - LOst? - Sun Oct 01, 2006 3:34 pm

Quote:
Extended palettes
When bit 30 of Display control is set on either display, Text and rotation backgrounds will access an external palette. These palettes can be stored in VRAM_E, F, G. The palette used is determined by the palette index in the map tile attribute (high 4 bits) similar to the way it would reference a 16x16 color palette. There are 16 256-color palettes addressable by each background.

This is taken from:
http://www.drunkencoders.com/documents/DS/ndslib.htm

I need a way to have "16 color" tiles, where I can select which palette line to use for a tile in a map, AND which extended palette to use. Is this even possible or should I kill myself?

Okay, I am not sure if you understood me so I will give an example. I have a map of size 32x32. Each tile in this map will use a selected palette line into an extended palette. Palette line means color index 0-15, 16-31,... etc.

It is a dream for me to have 10 extended palettes (or more), each with different color schemes. Then for each tile, use one of these color scemes, but also select which 16 colors (palette line) to use. This is to use different shades of that color scheme.

Help me if you can :P
_________________
Exceptions are fun