#52255 - lewisrevill - Sun Aug 28, 2005 9:06 pm
Hey guys - pointless question but needs to be asked. In mode 4 what registers hold the sprites bitmaps? Could you give me the full range?
I think its from 0x0601000 or sumink.
Thank you
#52256 - tepples - Sun Aug 28, 2005 9:22 pm
Sprite cel VRAM is 32 KiB, 0x06010000 through 0x06017FFF. In modes 3, 4, and 5, only the second half (0x06014000 through 0x06017FFF) is available for sprite cel use because the first half is reallocated to the frame buffer.
You can read more in Martin Korth's GBATEK, and feel free to ask us about things you don't understand.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#52350 - lewisrevill - Mon Aug 29, 2005 10:43 pm
The thing is im having trouble as like i say im using mode 4 and have large sprites taking up lots of space. What would you suggest? Using Modes 0 - 1, or maybe decrease the palette of the sprites. Thank you for your help!
#52390 - tepples - Tue Aug 30, 2005 1:45 pm
Use 16-color sprites if you can. How large are you talking about, and how many on screen at once?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#52504 - lewisrevill - Wed Aug 31, 2005 9:52 am
I have 4 64X64 sprites on screen at once. Is there any way you can have some sprites 256 colours and some 16 colours?
#52508 - FluBBa - Wed Aug 31, 2005 10:25 am
64x64 * 4 is 16kB which should still fit in Obj VRAM in mode 4.
_________________
I probably suck, my not is a programmer.
#52581 - poslundc - Thu Sep 01, 2005 3:06 am
| lewisrevill wrote: |
| I have 4 64X64 sprites on screen at once. Is there any way you can have some sprites 256 colours and some 16 colours? |
Yes; you can set the colour mode in attribute 0 of your OAM entry.
Dan.
#52591 - tepples - Thu Sep 01, 2005 5:24 am
Another advantage of 16-color sprites, other than the reduced use of ROM and VRAM, is the freedom to swap sprites with different palettes in and out of play at any time. But when mixing 16-color and 256-color sprites, remember that with 16-color sprites, each 16-color sprite palette will use a 15-color chunk of your 256-color sprite palette (colors 16*n+1 to 16*n+15, where 16*n is not used because it's transparent).
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.