From 02a81dfcc5beb1fbe784a3e261fd6416590f4755 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 1 Nov 2023 14:04:15 +0100 Subject: Clean up map. Use JS to layout stacks. Change size to be an even multiple of the track boxes (1503x1103). Move boxes and text into play.html part. Render area outlines and borders to bitmap. Focus stacks by clicking as in wilderness war. Stacks expand different directions based on the sub-location so that they don't collide with stacks in the same area. NOTE: Layout values have been manually tweaked. Do not re-run the genlayout script. --- counters.svg | 1 - fonts/URWGothic-Book.woff2 | Bin 0 -> 20648 bytes fonts/URWGothic-BookOblique.woff2 | Bin 0 -> 20968 bytes fonts/URWGothic-Demi.woff2 | Bin 0 -> 20976 bytes fonts/URWGothic-DemiOblique.woff2 | Bin 0 -> 20832 bytes fonts/URWGothic-license.txt | 9 + images/counters.svg | 1 + images/ops.svg | 3 + images/ug.svg | 3 + map.svg | 2 +- map.webp | Bin 0 -> 71480 bytes play.html | 526 +++++----- play.js | 763 ++++++++------ tools/genlayout.py | 52 +- tools/genshape.js | 30 + tools/layout.svg | 2045 ++++++++++++++++++++++++++++++------- 16 files changed, 2463 insertions(+), 972 deletions(-) delete mode 100644 counters.svg create mode 100644 fonts/URWGothic-Book.woff2 create mode 100644 fonts/URWGothic-BookOblique.woff2 create mode 100644 fonts/URWGothic-Demi.woff2 create mode 100644 fonts/URWGothic-DemiOblique.woff2 create mode 100644 fonts/URWGothic-license.txt create mode 100644 images/counters.svg create mode 100644 images/ops.svg create mode 100644 images/ug.svg create mode 100644 map.webp create mode 100644 tools/genshape.js diff --git a/counters.svg b/counters.svg deleted file mode 100644 index 1359483..0000000 --- a/counters.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/fonts/URWGothic-Book.woff2 b/fonts/URWGothic-Book.woff2 new file mode 100644 index 0000000..00816fd Binary files /dev/null and b/fonts/URWGothic-Book.woff2 differ diff --git a/fonts/URWGothic-BookOblique.woff2 b/fonts/URWGothic-BookOblique.woff2 new file mode 100644 index 0000000..fb3f31c Binary files /dev/null and b/fonts/URWGothic-BookOblique.woff2 differ diff --git a/fonts/URWGothic-Demi.woff2 b/fonts/URWGothic-Demi.woff2 new file mode 100644 index 0000000..4606259 Binary files /dev/null and b/fonts/URWGothic-Demi.woff2 differ diff --git a/fonts/URWGothic-DemiOblique.woff2 b/fonts/URWGothic-DemiOblique.woff2 new file mode 100644 index 0000000..733676e Binary files /dev/null and b/fonts/URWGothic-DemiOblique.woff2 differ diff --git a/fonts/URWGothic-license.txt b/fonts/URWGothic-license.txt new file mode 100644 index 0000000..be2a63e --- /dev/null +++ b/fonts/URWGothic-license.txt @@ -0,0 +1,9 @@ +The font and related files in this directory are distributed under the +GNU AFFERO GENERAL PUBLIC LICENSE Version 3 (see the file COPYING), with +the following exemption: + +As a special exception, permission is granted to include these font +programs in a Postscript or PDF file that consists of a document that +contains text to be displayed or printed using this font, regardless +of the conditions or license applying to the document itself. + diff --git a/images/counters.svg b/images/counters.svg new file mode 100644 index 0000000..1359483 --- /dev/null +++ b/images/counters.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/ops.svg b/images/ops.svg new file mode 100644 index 0000000..b2a4ae2 --- /dev/null +++ b/images/ops.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/images/ug.svg b/images/ug.svg new file mode 100644 index 0000000..b2bf6cb --- /dev/null +++ b/images/ug.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/map.svg b/map.svg index 11cd4d3..2c07c51 100644 --- a/map.svg +++ b/map.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/map.webp b/map.webp new file mode 100644 index 0000000..1b4ffb4 Binary files /dev/null and b/map.webp differ diff --git a/play.html b/play.html index 24e7f37..9d3e2a1 100644 --- a/play.html +++ b/play.html @@ -8,15 +8,20 @@ ALGERIA - - + + - +