33 #ifndef SNES_MAPS_INCLUDE
34 #define SNES_MAPS_INCLUDE
38 #define T_EMPTY 0x0000
39 #define T_SOLID 0xFF00
40 #define T_LADDE 0x0001
41 #define T_FIRES 0x0002
42 #define T_SPIKE 0x0004
43 #define T_PLATE 0x0008
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
50 #define ACT_DIE 0x0010
51 #define ACT_BURN 0x0020
53 extern u16
bg_L1[32 * 32];
66 void 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.