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 > icon data

#138084 - qwewq - Sun Aug 19, 2007 5:25 pm

hi ~
i had question need help ~
i can get the icon data from Cartridge, but i don't know how to show the icon on sub scren ? please give me some proposition~thx[/code][/quote]

#138085 - tepples - Sun Aug 19, 2007 5:27 pm

You can load it into a sprite cel, or you can load it into tiles, or you can draw it as pixels. What video mode are you currently using on the sub screen?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#138096 - spinal_cord - Sun Aug 19, 2007 8:04 pm

as tepples said, the data is formatted perfectly for sprite use, the palette is in the correct format, just copy it to the sprite palette and the 4 tiles can be loaded directly to a sprite.
_________________
I'm not a boring person, it's just that boring things keep happening to me.
Homepage

#138206 - qwewq - Tue Aug 21, 2007 4:30 am

thx tepples & spinal_cord proposition~~^^