summaryrefslogtreecommitdiff
path: root/inc/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/config.h')
-rw-r--r--inc/config.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/inc/config.h b/inc/config.h
new file mode 100644
index 0000000..e5fe194
--- /dev/null
+++ b/inc/config.h
@@ -0,0 +1,17 @@
+#pragma once
+
+typedef struct Config {
+ int tile_width;
+ int tile_height;
+ int cell_width;
+ int cell_height;
+ int world_width;
+ int world_height;
+ char *tileset_path;
+ char *world_path;
+} Config;
+
+extern Config cfg;
+
+void config_init(const char *path);
+void config_deinit(void);