diff options
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h new file mode 100644 index 0000000..3e265b2 --- /dev/null +++ b/src/map.h @@ -0,0 +1,17 @@ +#pragma once + +#include <stdint.h> + +#define MAP_SIZE 8 +static uint8_t MAPDATA[MAP_SIZE * MAP_SIZE] = { + 1, 1, 1, 1, 1, 1, 1, 1, + 1, 0, 0, 0, 0, 0, 0, 1, + 1, 0, 0, 0, 0, 3, 0, 1, + 1, 0, 0, 0, 0, 0, 0, 1, + 1, 0, 2, 0, 4, 4, 0, 1, + 1, 0, 0, 0, 4, 0, 0, 1, + 1, 0, 3, 0, 0, 0, 0, 1, + 1, 1, 1, 1, 1, 1, 1, 1, +}; + +#define value(x, y) (MAPDATA[(x) + MAP_SIZE * (y)]) |