-
Notifications
You must be signed in to change notification settings - Fork 5
Background
Kannagi edited this page Aug 30, 2024
·
12 revisions
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
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,
Allows to limit the map BG1 or BG 2 automatically
Example:
call SNDK_LimitBG1:
call SNDK_LimitBG2:
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)
SNDK v0.3