summaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-06-29 18:40:49 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-06-29 18:40:49 +0300
commitb7bab0bc3c2c82d5f356ae525397396a63db6cdf (patch)
tree57f1023746356917a0bba052418c23b500c85b9b /map.h
parentdfdb1a802028debd5451c1c8acaf75ea1e949102 (diff)
downloadwafflestone-b7bab0bc3c2c82d5f356ae525397396a63db6cdf.tar.xz
Map creation
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 b724c93..141f74c 100644
--- a/map.h
+++ b/map.h
@@ -3,10 +3,17 @@
#include "framebuffer.h"
+/* Used to represent an empty tile */
+#define P_EMPTY (Pixel){C_BLACK, C_BLACK, '\0'}
+
/* A structure representing a map. */
typedef struct Map_s {
size_t width, height;
Pixel **tiles; /* used as tiles[row][col] or tiles[y][x] */
} Map;
+Map map_new(size_t width, size_t height);
+void map_free(Map *map);
+Map map_default(void);
+
#endif /* MAP_H_ */