summaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'map.c')
-rw-r--r--map.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/map.c b/map.c
new file mode 100644
index 0000000..3313f10
--- /dev/null
+++ b/map.c
@@ -0,0 +1,5 @@
+#include "map.h"
+
+int map_size(int w, int h) {
+ return sizeof(Map) + w * h * sizeof(Map_Tile);
+}