Skip to content

Commit 52f92b3

Browse files
committed
working on more complex WFC tiles
1 parent 0207202 commit 52f92b3

File tree

18 files changed

+124
-61
lines changed

18 files changed

+124
-61
lines changed

cell.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Cell {
2+
constructor(value) {
3+
this.collapsed = false;
4+
if (value instanceof Array) {
5+
this.options = value;
6+
} else {
7+
this.options = [];
8+
for (let i = 0; i < value; i++) {
9+
this.options[i] = i;
10+
}
11+
}
12+
}
13+
}

circuit/0.png

9.38 KB
Loading

circuit/1.png

9.38 KB
Loading

circuit/10.png

9.38 KB
Loading

circuit/11.png

9.38 KB
Loading

circuit/12.png

9.38 KB
Loading

circuit/2.png

9.38 KB
Loading

circuit/3.png

9.38 KB
Loading

circuit/4.png

9.38 KB
Loading

circuit/4f.png

910 Bytes
Loading

0 commit comments

Comments
 (0)