summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-11 00:18:33 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-11 00:18:33 +0200
commit58aaa452af5df5fe84d9d26c5e0eb93048345844 (patch)
treeceea7d52f3bce006587d679c1e01e1827c0cace9
parentd21be0f5a699cbe0f754b753178d49d43c4b03c6 (diff)
downloadplantagenet-58aaa452af5df5fe84d9d26c5e0eb93048345844.tar.gz
start with markers at appropriate positions
-rw-r--r--play.html14
-rw-r--r--play.js2
2 files changed, 8 insertions, 8 deletions
diff --git a/play.html b/play.html
index b0a9b7c..5054d5a 100644
--- a/play.html
+++ b/play.html
@@ -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>
diff --git a/play.js b/play.js
index 4b3eb18..dec6038 100644
--- a/play.js
+++ b/play.js
@@ -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 = [