rendering a board of squares

This commit is contained in:
Gavin McDonald
2018-06-24 13:59:12 -04:00
parent 26c6813d95
commit bf37910877
9 changed files with 374 additions and 47 deletions

View File

@@ -14,7 +14,8 @@ class Demo {
let tessellate = new Tessellate({
element: '#container',
tap: this.onTap,
draw: this.draw
draw: this.draw,
pointyTop: false, //utils.random(1) ? true : false,
});
this.circle = new DrawCircle();
@@ -28,7 +29,7 @@ class Demo {
onTap(tap) {
let scale = utils.random(10, 50);
console.log(tap.hex.getHex());
console.log(tap.tile.getPoint());
this.map.push(new Cell({
tile: this.tiles[utils.random(this.tiles.length-1)],