rendering a board of squares
This commit is contained in:
@@ -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)],
|
||||
|
||||
Reference in New Issue
Block a user