![]() |
dsekai
World engine for retrocomputers.
|
Functions and macros pertaining to tilemaps. More...

Go to the source code of this file.
Macros | |
| #define | TILEMAP_FLAG_WEATHER_MASK 0x0f |
| Bitmask indicating flags that determine TILEMAP weather. | |
| #define | TILEMAP_FLAG_WEATHER_SNOW 0x01 |
| #define | TILEMAP_FLAG_WEATHER_RAIN 0x02 |
| #define | TILEMAP_FLAG_EDITABLE 0x10 |
| #define | TILEMAP_ERROR_BLOCKED -40 |
| Return value indicating movement is blocked by terrain. | |
| #define | tilemap_get_tile_id(t, x, y) |
| Get the TILEMAP::tileset index for the tile at the given coords. | |
| #define | tilemap_tile_get_image(tt) |
| Get the pointer to the sprite graphic to use for a ::TILEMAP_TILE. | |
| #define | tilemap_is_dirty(x, y, map) |
| #define | tilemap_set_dirty(x, y, map) |
| #define | tilemap_unset_dirty(x, y, map) |
Functions | |
| int16_t | tilemap_load (const char *map_name, struct TILEMAP *t) |
| Load tilemap with map_name into the given TILEMAP and prepare it for running in the engine. | |
| int8_t | tilemap_collide (uint8_t x, uint8_t y, uint8_t dir, struct TILEMAP *t) |
| Detect potential collision between a MOBILE and TILEMAP tile with blocking flags. | |
| void | tilemap_advance_tile_id (struct TILEMAP *t, uint16_t x, uint16_t y) SECTION_TILEMAP |
| Increment the tile_id on the specified tile coordinates. Useful for editing TILEMAP. | |
Functions and macros pertaining to tilemaps.