Refactor Maps (#2)
This commit is contained in:
@@ -51,7 +51,7 @@ export default class DrawHexagon {
|
||||
context.stroke();
|
||||
}
|
||||
|
||||
filled(context, scale, x, y, cell) {
|
||||
fill(context, scale, x, y, cell) {
|
||||
scale = scale * cell.scale;
|
||||
let hexCornerX = cell.orientation === POINTY ? this.pointyTopCornerX : this.flatTopCornerX;
|
||||
let hexCornerY = cell.orientation === POINTY ? this.pointyTopCornerY : this.flatTopCornerY;
|
||||
|
||||
Reference in New Issue
Block a user