From b7bab0bc3c2c82d5f356ae525397396a63db6cdf Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Mon, 29 Jun 2026 18:40:49 +0300 Subject: Map creation --- map.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'map.h') 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_ */ -- cgit v1.2.3