From 0d883df1f0c510739a15edd7f708e2800d20bb32 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 29 Nov 2024 00:44:18 +0100 Subject: Set initial piece positions to starting layout. --- play.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'play.js') diff --git a/play.js b/play.js index 4b1edc6..311572e 100644 --- a/play.js +++ b/play.js @@ -538,12 +538,16 @@ function layout_stability_marker() { ui.stability.style.top = y - 25 + "px" } -let TST_X = [ 0, 53, 53 + 69, 53 + 69 * 2, 53 + 69 * 3, 53 + 69 * 4, 53 + 69 * 5, 53 + 69 * 6, 556 ] +let TST_X = [ 53, 53, 53 + 69, 53 + 69 * 2, 53 + 69 * 3, 53 + 69 * 4, 53 + 69 * 5, 53 + 69 * 6, 556 ] let TST_Y = [ 2128, 2257 ] function layout_tst_marker(e, v, top) { let x = TST_X[v] + 24 let y = TST_Y[top] + 24 + if (v === 0) { + x -= 40 + y -= 10 + } e.style.left = x - 25 + "px" e.style.top = y - 25 + "px" } -- cgit v1.2.3