diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-11 00:18:33 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-11 00:18:33 +0200 |
commit | 58aaa452af5df5fe84d9d26c5e0eb93048345844 (patch) | |
tree | ceea7d52f3bce006587d679c1e01e1827c0cace9 | |
parent | d21be0f5a699cbe0f754b753178d49d43c4b03c6 (diff) | |
download | plantagenet-58aaa452af5df5fe84d9d26c5e0eb93048345844.tar.gz |
start with markers at appropriate positions
-rw-r--r-- | play.html | 14 | ||||
-rw-r--r-- | play.js | 2 |
2 files changed, 8 insertions, 8 deletions
@@ -70,13 +70,13 @@ <div id="battle" class="hide" style="z-index:50"></div> </div> -<div id="turn" class="marker circle turn levy"></div> -<div id="end" class="marker circle end"></div> -<div id="victory_check" class="marker square victory_check"></div> -<div id="towns" class="marker square towns"></div> -<div id="cities" class="marker square cities"></div> -<div id="fortresses" class="marker square fortresses"></div> -<div id="ip" class="marker square ip"></div> +<div id="end" class="marker circle end" style="left: 243px; top: 132px;"></div> +<div id="turn" class="marker circle turn levy" style="left: 243px; top: 132px;"></div> +<div id="victory_check" class="marker square victory_check" style="left: 1202px; top: 865px;"></div> +<div id="towns" class="marker square towns" style="left: 21px; top: 1574px;"></div> +<div id="cities" class="marker square cities" style="left: 21px; top: 1574px;"></div> +<div id="fortresses" class="marker square fortresses" style="left: 21px; top: 1574px;"></div> +<div id="ip" class="marker square ip" style="left: 21px; top: 1574px;"></div> </div> </div> @@ -415,7 +415,7 @@ for (let i = 0; i <= 45; ++i) { x = 1205 + 22 y = 1577 - (i-25) * 47.25 + 22 } - TRACK_XY[i] = [ x, y ] + TRACK_XY[i] = [ Math.round(x), Math.round(y) ] } const CALENDAR_XY = [ |