We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1318612 commit 0207202Copy full SHA for 0207202
sketch.js
@@ -2,7 +2,7 @@ const tiles = [];
2
3
let grid = [];
4
5
-const DIM = 8;
+const DIM = 20;
6
7
const BLANK = 0;
8
const UP = 1;
@@ -44,11 +44,12 @@ const rules = [
44
];
45
46
function preload() {
47
- tiles[0] = loadImage('tiles/blank.png');
48
- tiles[1] = loadImage('tiles/up.png');
49
- tiles[2] = loadImage('tiles/right.png');
50
- tiles[3] = loadImage('tiles/down.png');
51
- tiles[4] = loadImage('tiles/left.png');
+ const path = 'mountains';
+ tiles[0] = loadImage(`${path}/blank.png`);
+ tiles[1] = loadImage(`${path}/up.png`);
+ tiles[2] = loadImage(`${path}/right.png`);
+ tiles[3] = loadImage(`${path}/down.png`);
52
+ tiles[4] = loadImage(`${path}/left.png`);
53
}
54
55
function setup() {
0 commit comments