BG_MAP_BASE Help needed

Post Reply
Prometheus
Posts: 2
Joined: Mon Jul 12, 2010 2:44 am

BG_MAP_BASE Help needed

Post by Prometheus » Mon Jul 12, 2010 5:01 am

Please, can somebody explain me what BG_MAP_BASE stands for?
I've made a simple test with two background (1 for the top screen and 1 for the bottom screen) and 1 console to print out text.
At first it didn't work, then I've found in this forum that somebody suggested to put BG_MAP_BASE(2) and it worked.
But I really can't understand why I have to put "2" as a value for BG_MAP_BASE.
Please, help me.
Thanks in advance.

User avatar
coreyh2
Posts: 33
Joined: Tue Feb 02, 2010 12:43 am

Re: BG_MAP_BASE Help needed

Post by coreyh2 » Tue Jul 13, 2010 12:22 am


User avatar
vuurrobin
Posts: 219
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

Re: BG_MAP_BASE Help needed

Post by vuurrobin » Tue Jul 13, 2010 12:37 am

and:

http://libnds.devkitpro.org/a00062.html
#define BG_MAP_BASE(base) ((base) << MAP_BASE_SHIFT)
Macro to set the map base in background control.

Post Reply

Who is online

Users browsing this forum: No registered users and 79 guests