From 57858b90f855cf69997b0e1e421c89e14729eb5a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 17 Feb 2013 20:21:48 -0500 Subject: Handle tiles and properties in tilesets. --- (limited to 'src/resources/map.h') 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; -- cgit v0.9.1