Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

web: a local multi-size favicon (#47) (#169)

agamrafaeli-instinct71e205c83f8b
diff --git a/ASSETS.yaml b/ASSETS.yaml
index 736f09ec8..8c5293a9e 100644
--- a/ASSETS.yaml
+++ b/ASSETS.yaml
@@ -61,6 +61,12 @@ rules:
licence: CC-BY-4.0
source: "Screenshots of the M0 spike builds"
status: verified
+ - glob: "unity/Assets/WebGLTemplates/Statecraft/favicon.ico"
+ licence: CC-BY-4.0
+ source: "Original geometric drawing for the WebGL page's tab icon (issue #47): a gold hexagon with a cream serif I on navy, in the loading page's colours; 16, 32 and 48 px; made 2026-10-11 for PR #169"
+ status: verified
+ ai_generated: true
+ note: "The contributor reports the drawing was AI-assisted (PR #169); flagged for the AI-content disclosure by controller ruling."
# --- Fonts ---
- glob: "unity/Assets/UI/Fonts/*.ttf"
licence: OFL-1.1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 63b186780..893934cce 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB
## [Unreleased]
### Added
+- A local multi-size favicon for the WebGL page.
- Hebrew names and sourced birth and death dates for all 29 people (issue #1).
- Successors for offices left by deaths in 1952: Ben-Gurion takes Transportation after Pinkas (14 August 1952) and
Yitzhak Ben-Zvi becomes President on 16 December 1952 after Weizmann; the presidency is vacant in between, while
diff --git a/LICENSING.md b/LICENSING.md
index d817b31f6..c3a380d1f 100644
--- a/LICENSING.md
+++ b/LICENSING.md
@@ -6,7 +6,7 @@ Different parts of this repository are under different licences. Where a file is
|---|---|---|
| Code | `sim/`, `tools/` (Python), `scripts/`, `.github/`, `.gitignore`, `unity/Assets/Scripts/`, `unity/Assets/Editor/`, `unity/Assets/Tests/`, `promo/*.py`, `spikes/` code, and everything else under `unity/Assets/` not listed below (scenes such as `Map.unity`, `WebGLTemplates/`, `link.xml`, `*.inputactions`, `.meta` files) | [MIT](LICENSE) |
| Game content (text and data) | `content/` (events, people, offices, model, rules, map YAML/JSON), except the third-party map data below | [CC BY-SA 4.0](LICENSES/CC-BY-SA-4.0.txt), credit "Statecraft: Israel contributors". The text paraphrases its cited sources, many from Wikipedia (CC BY-SA), so share-alike applies; each entry lists its sources |
-| Original docs, art and UI assets | `docs/`, the root `*.md` files (except `LICENSE`), `ASSETS.yaml`, `ASSETS.portraits.yaml`, `promo/shots.json`, `promo/CREDITS.md`, `tools/README.md`, `reports/` (our own text), `research_notes/` (our own text), `unity/Assets/UI/*.uxml`, `*.uss`, `strings.en.yaml`, `unity/Assets/Materials/`, `unity/Assets/Resources/Units/` (materials), `unity/Assets/Shaders/`, `unity/Assets/UI/*.asset`, `promo/ref/geo-reference.png` | [CC BY 4.0](LICENSES/CC-BY-4.0.txt), credit "Statecraft: Israel contributors" |
+| Original docs, art and UI assets | `docs/`, the root `*.md` files (except `LICENSE`), `ASSETS.yaml`, `ASSETS.portraits.yaml`, `promo/shots.json`, `promo/CREDITS.md`, `tools/README.md`, `reports/` (our own text), `research_notes/` (our own text), `unity/Assets/UI/*.uxml`, `*.uss`, `strings.en.yaml`, `unity/Assets/Materials/`, `unity/Assets/Resources/Units/` (materials), `unity/Assets/Shaders/`, `unity/Assets/UI/*.asset`, `unity/Assets/WebGLTemplates/Statecraft/favicon.ico`, `promo/ref/geo-reference.png` | [CC BY 4.0](LICENSES/CC-BY-4.0.txt), credit "Statecraft: Israel contributors" |
| Unity template-derived files | `unity/Assets/Settings/` (URP assets, renderers, volume profiles), `spikes/m0/unity/Assets/Settings/`, `spikes/m0/unity/Assets/UI Toolkit/UnityThemes/`, and any Shader Graph generated from a Unity template (for example `unity/Assets/Shaders/StatecraftTerrain.shadergraph`, from "Terrain Simple") | Created from Unity's project or graph templates and edited; under the [Unity Companion License](https://unity.com/legal/licenses/unity-companion-license) (use with Unity), not MIT |
| AI-generated images | `promo/final/01`–`08`, `promo/ref/*-src.jpg`, `docs/images/hero-concept-1936.jpg` | Marked [CC0 1.0](LICENSES/CC0-1.0.txt). No rights are claimed. Purely AI-generated output may not be copyrightable. Made with the ElevenLabs Image API (see `promo/CREDITS.md`). |
| In-engine captures | `promo/final/09`, `10`, `docs/images/build-*.jpg`, `docs/images/social-preview.jpg`, `spikes/m0/evidence/*.jpg`, `spikes/m0/evidence/*.txt` (logs) | CC BY 4.0. They show the Copernicus-derived terrain; see below. |
diff --git a/tools/tests/test_webgl_favicon.py b/tools/tests/test_webgl_favicon.py
new file mode 100644
index 000000000..4331f11c9
--- /dev/null
+++ b/tools/tests/test_webgl_favicon.py
@@ -0,0 +1,44 @@
+"""The WebGL template's icon is linked and served beside index.html (no Unity needed)."""
+from html.parser import HTMLParser
+from pathlib import Path
+from urllib.request import urlopen
+
+from PIL import Image
+import web_check as wc
+
+TEMPLATE = Path(__file__).resolve().parents[2] / "unity/Assets/WebGLTemplates/Statecraft"
+
+
+class IconLinks(HTMLParser):
+ def __init__(self):
+ super().__init__()
+ self.icons = []
+
+ def handle_starttag(self, tag, attrs):
+ attrs = dict(attrs)
+ if tag == "link" and "icon" in attrs.get("rel", "").split():
+ self.icons.append(attrs)
+
+
+def test_webgl_template_links_a_local_multisize_icon():
+ page = IconLinks()
+ page.feed((TEMPLATE / "index.html").read_text())
+ assert len(page.icons) == 1
+ icon = page.icons[0]
+ assert icon["href"] == "favicon.ico"
+ assert icon["type"] == "image/x-icon"
+ with Image.open(TEMPLATE / icon["href"]) as image:
+ assert image.format == "ICO"
+ assert image.ico.sizes() == {(16, 16), (32, 32), (48, 48)}
+
+
+def test_favicon_is_served_at_template_relative_url():
+ server = wc.serve(TEMPLATE)
+ try:
+ base = f"http://localhost:{server.server_address[1]}"
+ with urlopen(base + "/favicon.ico") as response:
+ assert response.status == 200
+ assert response.read() == (TEMPLATE / "favicon.ico").read_bytes()
+ finally:
+ server.shutdown()
+ server.server_close()
diff --git a/unity/Assets/WebGLTemplates/Statecraft/favicon.ico b/unity/Assets/WebGLTemplates/Statecraft/favicon.ico
new file mode 100644
index 000000000..63d933c48
Binary files /dev/null and b/unity/Assets/WebGLTemplates/Statecraft/favicon.ico differ
diff --git a/unity/Assets/WebGLTemplates/Statecraft/favicon.ico.meta b/unity/Assets/WebGLTemplates/Statecraft/favicon.ico.meta
new file mode 100644
index 000000000..ae00f2420
--- /dev/null
+++ b/unity/Assets/WebGLTemplates/Statecraft/favicon.ico.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: cdfa41f27bd3433ba8f5cc65ca12ef04
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/unity/Assets/WebGLTemplates/Statecraft/index.html b/unity/Assets/WebGLTemplates/Statecraft/index.html
index 5fd480699..ffaa65934 100644
--- a/unity/Assets/WebGLTemplates/Statecraft/index.html
+++ b/unity/Assets/WebGLTemplates/Statecraft/index.html
@@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no">
<title>{{{ PRODUCT_NAME }}}</title>
+ <link rel="icon" type="image/x-icon" href="favicon.ico">
<style>
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #0e1626; }
#unity-canvas { position: fixed; left: 0; top: 0; width: 100%; height: 100%; background: #0e1626; display: block; }