Separate names with a comma.
Discussion in 'NDS - Emulation and Homebrew' started by gudenaurock, Sep 22, 2012.
I have looked, just not found.... I would like some help on this.
A little bit more info would be nice. What you basically want to do is to connect two screens of the DS (dual screen mode) into one display with sprites and/or backgrounds being capable to traverse from one to the other, am I correct?
I want to have status on the top. The game on the bottom, witch both are 2d.
Uhm... so you *don't* want to connect the screens, you want them to remain separate displays for separate things?
Well then just map one VRAM block for the MAIN screen and one for the SUB screen. For example:
Both screens are set to work in MODE 0, the top one is set to Bank A, the bottom one to bank C. Now you can init backgrounds on either screen.
You can find examples in X:\devkitpro\Examples\nds, you'll find more there.
I will check my code, and change if I need to...
Review the code in X:\devkitPro\examples\nds\Graphics\Sprites\simple
It shows *exactly* what you need - sprites on both the top and the bottom screen, in detail.
That is unless you're not using libnds - if you're using nflib, palib or whatever other library, review their examples.
Ok thanks. I will look it over better this time.