summaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'map.h')
-rw-r--r--map.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/map.h b/map.h
index 3bf619b24..348e22bc4 100644
--- a/map.h
+++ b/map.h
@@ -48,6 +48,13 @@ enum {
INVALID_TILE = (uint32) -1
};
+enum {
+ TILE_SIZE = 16, /* Tiles are 16x16 "units" in size */
+ TILE_PIXELS = 32, /* a tile is 32x32 pixels */
+ TILE_HEIGHT = 8, /* The standard height-difference between tiles on two levels is 8 (z-diff 8) */
+};
+
+
static inline uint TileX(TileIndex tile)
{
return tile & MapMaxX();