PVSnesLib
4.3.0
Documentation to code in C or ASM for the Nintendo SNES
|
contains the functions to manage / scroll large background MAP on SNES. More...
#include <snes/snestypes.h>
Go to the source code of this file.
Functions | |
u16 | mapGetMetaTile (u16 xpos, u16 ypos) |
Get metatile value from current map. | |
u16 | mapGetMetaTilesProp (u16 xpos, u16 ypos) |
Get metatile property from current map (solid, lad, fire, etc...) | |
void | mapLoad (u8 *layer1map, u8 *layertiles, u8 *tilesprop) |
Load map definition into memory. | |
void | mapUpdate (void) |
Update map regarding current camera position (must be done once per frame) | |
void | mapUpdateCamera (u16 xpos, u16 ypos) |
Update map camera (must be done once per frame) | |
void | mapVblank (void) |
Display map regarding current buffer (must be done once per frame, near Vblank) | |
contains the functions to manage / scroll large background MAP on SNES.
this can only be use for mode 1
the engine scrolls layer1 in x and y coordinates
layer address is : 6800 for Layer 1
mapGetMetaTile | ( | u16 | xpos, |
u16 | ypos | ||
) |
Get metatile value from current map.
xpos | x coordinate of metatile |
ypos | x coordinate of metatile |
mapGetMetaTilesProp | ( | u16 | xpos, |
u16 | ypos | ||
) |
Get metatile property from current map (solid, lad, fire, etc...)
xpos | x coordinate of metatile |
ypos | x coordinate of metatile |
mapLoad | ( | u8 * | layer1map, |
u8 * | layertiles, | ||
u8 * | tilesprop | ||
) |
Load map definition into memory.
WARNING! Map engine must be used on Background #0.
layer1map | address of map with tiles |
layertiles | address of tiles definition |
tilesprop | address of tiles property definition (blocker, spikes, and so on) |
mapUpdateCamera | ( | u16 | xpos, |
u16 | ypos | ||
) |
Update map camera (must be done once per frame)
xpos | x coordinate of object where we want to focus on |
ypos | x coordinate of object where we want to focus on |