-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.c
43 lines (40 loc) · 988 Bytes
/
layout.c
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "layout.h"
#include "patterns.h"
const layout_t layouts[] = {
{
TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY,
TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY
}, {
TILE_CAR, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY,
TILE_CAR, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY, TILE_EMPTY
}
};
const uint8_t num_layouts = 2;
const uint8_t tile_to_pattern[5][4] = {
{ // TILE_EMPTY
0,
0,
0,
0
}, { // TILE_TURT
0,
0,
0,
0
}, { // TILE_LOG
0,
0,
0,
0
}, { // TILE_CAR
PMFA_CAR_TOP_LEFT,
PMFA_CAR_TOP_RIGHT,
PMFA_CAR_BOTTOM_LEFT,
PMFA_CAR_BOTTOM_RIGHT
}, { // TILE_GATOR
0,
0,
0,
0
}
};