WIP
This commit is contained in:
@@ -158,17 +158,19 @@ class Board {
|
||||
}
|
||||
}
|
||||
|
||||
drawCoords(
|
||||
ctx,
|
||||
coords,
|
||||
this.squareSize,
|
||||
this.tiles,
|
||||
this.flipped,
|
||||
this.borderWidth,
|
||||
this.size,
|
||||
this.borderVisible,
|
||||
this.margin
|
||||
);
|
||||
if (this.borderVisible) {
|
||||
drawCoords(
|
||||
ctx,
|
||||
coords,
|
||||
this.squareSize,
|
||||
this.tiles,
|
||||
this.flipped,
|
||||
this.borderWidth,
|
||||
this.size,
|
||||
this.borderVisible,
|
||||
this.margin
|
||||
);
|
||||
}
|
||||
|
||||
this.background = canvas;
|
||||
}
|
||||
@@ -210,6 +212,20 @@ class Board {
|
||||
);
|
||||
}
|
||||
|
||||
if (!this.borderVisible) {
|
||||
drawCoords(
|
||||
this.tempCtx,
|
||||
this.style.coords,
|
||||
this.squareSize,
|
||||
this.tiles,
|
||||
this.flipped,
|
||||
this.borderWidth,
|
||||
this.size,
|
||||
this.borderVisible,
|
||||
this.margin
|
||||
);
|
||||
}
|
||||
|
||||
const piecesShadow = false;
|
||||
|
||||
await drawPieces(
|
||||
|
||||
Reference in New Issue
Block a user