summaryrefslogtreecommitdiff
path: root/render.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2024-07-06 20:16:48 -0500
committersanine <sanine.not@pm.me>2024-07-06 20:16:48 -0500
commit03528a25215330d3b00cabdb1bbe7ce701e1bfeb (patch)
treecaaed47028b8985137afdf5a9416f9e4c4de3db3 /render.js
parent0c6831d63cfb6b98107826524183d444eee2e4bd (diff)
implement level loading animation
Diffstat (limited to 'render.js')
-rw-r--r--render.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/render.js b/render.js
index 5fde9d1..126d6be 100644
--- a/render.js
+++ b/render.js
@@ -99,7 +99,15 @@ export function drawMark(ctx, mark, x, y) {
ctx.lineWidth = 0.1;
ctx.beginPath();
- ctx.arc(x, y, 0.4, 0, 2*Math.PI);
+ if (mark === '+') {
+ ctx.arc(x, y, 0.4, 0, 2*Math.PI);
+ } else {
+ ctx.moveTo(x+0.4, y);
+ ctx.lineTo(x, y+0.4);
+ ctx.lineTo(x-0.4, y);
+ ctx.lineTo(x, y-0.4);
+ ctx.closePath();
+ }
ctx.stroke();
ctx.textAlign = 'center';