Skip to content

Background

Kannagi edited this page Aug 30, 2024 · 12 revisions

SNDK_LoadBG

Loads a map automatically

uint16 nmap number map
uint16 positionx initialize map in position x
uint16 positiony initialize map in position y

Example:

call SNDK_LoadBG:1,100,100

SNDK_MAPLIST

In the "data_list" file, there is a label SNDK_MAPLIST: you can indicate all your maps.

SNDK_MAPLIST:

//0 (number map)
.data.l   MAP1_DATA:,MAP2_DATA:,0 // BG1 , BG2 , BG collision
.data.w 1024, 1024, // limit x ,y

//1 (number map)
.data.l   MAP3_DATA:,MAP4_DATA:,0
.data.w 1024, 1024,

SNDK_LimitBG

Allows to limit the map BG1 or BG 2 automatically

Example:

call SNDK_LimitBG1:
call SNDK_LimitBG2:

SNDK_ScrollMultiBG

Allows horizontal and/or vertical scrolling

uint16 flag indicate which scrolling you want to activate.
The flags are: SNDK_BG1SV SNDK_BG1SH SNDK_BG2SV SNDK_BG2SH

Example:

call SNDK_ScrollMultiBG: (SNDK_BG1SV | SNDK_BG1SH)
Clone this wiki locally