From 2da0d09e5718f8099b1e42ebdbabf31f68e7a4b0 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 25 Oct 2024 10:57:09 +0200 Subject: move hussars to east map border --- play.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index 725f1ad..0083dfd 100644 --- a/play.js +++ b/play.js @@ -243,8 +243,10 @@ const ELECTORAL_COLLEGE_X = 526 const ELECTORAL_COLLEGE_Y = 1574 const ELECTORAL_COLLEGE_DX = 52 -const HUSSAR_X = 2190 -const HUSSAR_Y = 1630 +const HUSSAR_X = 2485 - 36 +const HUSSAR_Y = 960 +const HUSSAR_DX = 0 +const HUSSAR_DY = -48 const VICTORY_BOX_X = [ 115, 170, 235 ] const VICTORY_BOX_Y = [ 235, 290, 345, 401 ] @@ -916,8 +918,8 @@ function layout_hussar(id, s) { y = data.cities.y[s] } - e.style.left = (x - 21 + n * ELIMINATED_GENERAL_DX) + "px" - e.style.top = (y - 29 + 7) + "px" + e.style.left = (x - 21 + n * HUSSAR_DX) + "px" + e.style.top = (y - 29 + 7 + n * HUSSAR_DY) + "px" e.classList.toggle("selected", set_has(view.selected, id)) } -- cgit v1.2.3