Back to index

These functions are needed to draw backgrounds on the screen like text, 8-bit backgrounds, and tile backgrounds.



Screen.WaitForVBL()

Pauses the program and waits for a single V-blank to happen, then continues. On the DS, there are 60 V-blanks every second.





BackgroundText = Screen.LoadTextBG()

Loads a text background into a variable.

BackgroundText is the variable that is used later when intializing the screens with this background.





Background8Bit = Screen.Load8BitBG()

Loads an 8-bit background into a variable.

Background8Bit is the variable that is used later when initializing the screens with this background.





BackgroundTile = Screen.LoadTileBG()

Loads a tile background into a variable.

BackgroundTile is the variable that is used later when intializing the screens with this background.





Keyboard = Screen.LoadKeyboardBG()

Loads a 16-bit background into a variable.

BackgroundKeyboard is the variable that is used later when initializing the screens with this background.





Background16Bit = Screen.Load16BitBG()

Loads a 16-bit background into a variable.

Background16Bit is the variable that is used later when intializing the screens with this background.





Screen.Initialize( screen, background1 [, background2, ...] )

Initializes a background variable (see the above functions) onto a screen.

screen can be either 1 (top screen) or 0 (bottom screen).
background1 is the background to load the screen to. It is the variable you got when using the above three functions (Screen.LoadBG().) You can load more than one background to the screen by putting another background variable after the first one (background1 in this example). The background on the left will be the top-most background.


Back to index