Implement live game clock and simulation controls; enhance API with clock update functionality and improve world summary with clock data; update UI to display simulation controls and integrate clock features into the game experience.

This commit is contained in:
Leonid Pershin
2026-08-16 19:31:12 +03:00
parent b75844d11a
commit 3b7fca1495
22 changed files with 1290 additions and 14 deletions
+16
View File
@@ -85,6 +85,22 @@
</button>
<span id="world-title" class="game-bar__title"></span>
<div id="sim-controls" class="sim-controls" hidden>
<span id="game-clock" class="sim-controls__clock" aria-live="polite"></span>
<button
id="play-pause"
type="button"
class="icon-button"
title="Pause"
aria-label="Pause"
></button>
<div class="sim-controls__speeds" role="group" aria-label="Simulation speed">
<button type="button" class="speed-button" data-scale="1">x1</button>
<button type="button" class="speed-button" data-scale="2">x2</button>
<button type="button" class="speed-button" data-scale="3">x3</button>
<button type="button" class="speed-button" data-scale="4">x4</button>
</div>
</div>
<button id="game-theme-toggle" type="button" class="icon-button" title="Switch theme" aria-label="Switch theme">
</button>