summaryrefslogtreecommitdiff
path: root/src/map.h
blob: ecb60ef862e49a446bdafeb0a02a70c62ce7e3ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#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 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)])