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

@@ -1,4 +1,3 @@
import Point from './point.js';
function computeY(x, z) {
@@ -91,7 +90,8 @@ export default class Hex extends Point {
return this;
}
getHex() { return {x: this.x, y: this.y, z: this.z}; }
getPoint() { return {x: this.x, y: this.y, z: this.z}; }
setHex(newHex) {
this.x = newHex.x;
this.y = newHex.y;