summaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-07-31 22:12:48 +1000
committerquou <quou@disroot.org>2024-07-31 22:12:48 +1000
commit205f7d49530e6c32ec0a09045d9cb45dcf9b1752 (patch)
treee1d3432a677ff3511ed191aabfde6cf240f784b7 /map.c
parent8d729883b3e134df8b9fc10f094df9fc3618bdb4 (diff)
GUI + map editor beginnings
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);
+}