-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.js
48 lines (47 loc) · 1.36 KB
/
demo.js
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
44
45
46
47
48
function debug(){
paused = true;
grid = [
[ 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 1, 1, 1, 1, 0, 0],
[ 0, 2, 2, 2, 2, 2, 0, 0],
[ 0, 3, 3, 0, 0, 0, 0, 0],
[ 0, 4, 4, 0, 0, 0, 0, 0],
[ 0, 5, 5, 0, 0, 0, 0, 0],
[ 0, 0, 6, 6, 6, 6, 0, 0],
[ 0, 0, 0, 7, 7, 7, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 1, 1, 1, 1, 0, 0, 0],
[ 0, 2, 2, 0, 2, 2, 0, 0],
[ 0, 3, 0, 0, 3, 3, 0, 0],
[ 0, 5, 5, 5, 5, 0, 0, 0],
[ 0, 6, 6, 0, 0, 0, 0, 0],
[ 0, 7, 7, 0, 0, 0, 0, 0],
[ 0, 1, 1, 0, 0, 0, 0, 0],
];
grid = [
[ 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 2, 3, 4, 5, 0, 0],
[ 0, 1, 2, 3, 4, 5, 0, 0],
[ 0, 1, 2, 0, 0, 0, 0, 0],
[ 0, 1, 2, 0, 0, 0, 0, 0],
[ 0, 1, 2, 0, 0, 0, 0, 0],
[ 0, 0, 2, 3, 4, 5, 0, 0],
[ 0, 0, 0, 3, 4, 5, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 1, 2, 3, 4, 0, 0, 0],
[ 0, 1, 2, 0, 4, 5, 0, 0],
[ 0, 1, 0, 0, 4, 5, 0, 0],
[ 0, 1, 2, 3, 4, 0, 0, 0],
[ 0, 1, 2, 0, 0, 0, 0, 0],
[ 0, 1, 2, 0, 0, 0, 0, 0],
[ 0, 1, 2, 0, 0, 0, 0, 0],
];
for (let r = 0; r < rows; r++) {
grid.push([]);
for (let c = 0; c < columns; c++) {
grid[r][c] = ((r + c)%7 + 1);
}
}
current.y = -50;
}
// debug()