diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-29 00:44:18 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-29 01:27:32 +0100 |
commit | 0d883df1f0c510739a15edd7f708e2800d20bb32 (patch) | |
tree | 7093081603fe0b77436131aa8baa1176e5bb097f /play.js | |
parent | a583fac7c8b3bd7e97d7977f56c1f8fac1d2e338 (diff) | |
download | 1989-dawn-of-freedom-0d883df1f0c510739a15edd7f708e2800d20bb32.tar.gz |
Set initial piece positions to starting layout.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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" } |