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