diff options
author | P. J. McDermott <pjm@nac.net> | 2013-02-17 20:21:48 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-02-17 20:21:48 (EST) |
commit | 57858b90f855cf69997b0e1e421c89e14729eb5a (patch) | |
tree | d4920b3f78f648fb12f6b96c32696c4f25bd12fe /src/resources/map.h | |
parent | 12b4f785f2bfccce59eb80378a76bf36bef6ff55 (diff) | |
download | overworld-rpg-57858b90f855cf69997b0e1e421c89e14729eb5a.zip overworld-rpg-57858b90f855cf69997b0e1e421c89e14729eb5a.tar.gz overworld-rpg-57858b90f855cf69997b0e1e421c89e14729eb5a.tar.bz2 |
Handle tiles and properties in tilesets.
Diffstat (limited to 'src/resources/map.h')
-rw-r--r-- | src/resources/map.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/map.h b/src/resources/map.h index e088161..ba264de 100644 --- a/src/resources/map.h +++ b/src/resources/map.h @@ -21,7 +21,15 @@ struct tileset { char *name; int tilewidth; int tileheight; + int width; + int height; + enum { + TILESET_TYPE_IMAGE, + TILESET_TYPE_COLLISION + } type; struct image *image; + Uint8 *collision_tiles; + int cur_collision_tile; }; struct map_tileset { struct tileset *tileset; |