summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-02 20:32:51 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:13:09 +0100
commit3695e20dc14412f5d627fa9ab280a1cd1fc14e18 (patch)
treef4e5fdd271f880fc1ec0970ed3c07c0ed81d436a /play.js
parent601e32c8303d6d79f22037338e61377959e8bca0 (diff)
downloadplantagenet-3695e20dc14412f5d627fa9ab280a1cd1fc14e18.tar.gz
Generic track.
Diffstat (limited to 'play.js')
-rw-r--r--play.js51
1 files changed, 50 insertions, 1 deletions
diff --git a/play.js b/play.js
index 634d953..e6f024c 100644
--- a/play.js
+++ b/play.js
@@ -513,6 +513,56 @@ const original_boxes = {
"box16": [1285,296,65,155],
}
+const track_boxes = [
+ [60,1613,48,48],
+ [109,1613,47,48],
+ [156,1613,46,48],
+ [203,1613,46,48],
+ [249,1613,48,48],
+ [297,1613,47,48],
+ [344,1613,48,48],
+ [392,1613,47,48],
+ [439,1613,46,48],
+ [485,1613,47,48],
+ [532,1613,49,49],
+ [581,1613,47,49],
+ [628,1613,47,49],
+ [675,1613,48,49],
+ [723,1613,46,48],
+ [769,1613,48,48],
+ [817,1613,47,48],
+ [864,1613,48,48],
+ [911,1613,46,48],
+ [958,1613,48,48],
+ [1006,1613,46,49],
+ [1052,1613,48,49],
+ [1100,1613,47,49],
+ [1147,1613,48,49],
+ [1195,1613,46,49],
+ [1241,1615,49,47],
+ [1241,1568,49,47],
+ [1241,1472,49,47],
+ [1241,1426,49,46],
+ [1241,1378,49,48],
+ [1241,1330,49,48],
+ [1241,1282,49,48],
+ [1241,1236,49,46],
+ [1241,1189,49,47],
+ [1241,1142,49,47],
+ [1241,1095,49,46],
+ [1241,1048,49,47],
+ [1241,998,49,50],
+ [1241,952,47,46],
+ [1241,903,47,48],
+ [1241,857,47,46],
+ [1241,812,51,45],
+ [1241,762,51,50],
+ [1241,714,51,48],
+ [1241,668,47,46],
+]
+
+const track_xy = track_boxes.map(([x,y,w,h])=>[x+w/2,y+h/2])
+
const calendar_xy = []
const locale_xy = []
@@ -537,7 +587,6 @@ const ui = {
lord_moved2: [],
lord_feed_x2: [],
cards: [],
- boxes: {},
calendar: [],
plan_panel: document.getElementById("plan_panel"),