33#ifndef SNES_MAPS_INCLUDE
34#define SNES_MAPS_INCLUDE
45#define ACT_STAND 0x0000
46#define ACT_WALK 0x0001
47#define ACT_JUMP 0x0002
48#define ACT_FALL 0x0004
49#define ACT_CLIMB 0x0008
51#define ACT_BURN 0x0020
53extern u16
bg_L1[32 * 32];
66void mapLoad(u8 *layer1map, u8 *layertiles, u8 *tilesprop);
u16 mapGetMetaTile(u16 xpos, u16 ypos)
Get metatile value from current map.
void mapVblank(void)
Display map regarding current buffer (must be done once per frame, near Vblank)
void mapUpdate(void)
Update map regarding current camera position (must be done once per frame)
u16 bg_L1[32 *32]
The buffer to use when updating the whole display on layer 1.
u16 y_pos
Current value of camera in x & y coordinates.
Definition map.h:57
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.
u8 mapupdbuf
State of buffer update (vert / horiz / all)
void mapUpdateCamera(u16 xpos, u16 ypos)
Update map camera (must be done once per frame)
Custom types used by libsnes.