summaryrefslogtreecommitdiff
path: root/include/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/map.h')
-rw-r--r--include/map.h40
1 files changed, 23 insertions, 17 deletions
diff --git a/include/map.h b/include/map.h
index 0bf1028..735c106 100644
--- a/include/map.h
+++ b/include/map.h
@@ -22,13 +22,10 @@ typedef struct t_tile {
vec2f br;
} tile;
-tile map_loaded[10][10];
+#define MAP_SIZE_X 20
+#define MAP_SIZE_Y 20
-// data data that is stored on disk
-vec2 spawner_tiles[2] = {
- {9, 0},
- {1, 8},
-};
+tile map_loaded[MAP_SIZE_Y][MAP_SIZE_X];
typedef struct t_map_info {
int tile_width;
@@ -38,17 +35,26 @@ typedef struct t_map_info {
} map_info;
// data data that is stored on disk
-int map[10][10] = {
- {0,0,0,0,0,0,0,0,0,1},
- {0,0,0,0,0,0,0,0,0,0},
- {0,0,0,1,1,0,0,0,0,0},
- {0,0,0,0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0,0,0,0},
- {0,0,0,1,1,2,1,0,0,0},
- {0,0,0,0,0,0,1,0,0,0},
- {0,0,0,0,0,0,0,0,0,0},
+int map[MAP_SIZE_Y][MAP_SIZE_X] = {
+ {0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0},
+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+ {0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+ {0,0,0,1,1,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
+ {0,0,0,0,0,0,1,0,0,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