Implement climate and weather features in world simulation; enhance API with weather retrieval and climate selection options, update UI to support climate selection during world creation, and improve weather display in the game interface.

This commit is contained in:
Leonid Pershin
2026-08-16 23:05:11 +03:00
parent 3610ee8051
commit 2a8b7b49b3
36 changed files with 3650 additions and 31 deletions
+9
View File
@@ -78,6 +78,14 @@
/>
</label>
<label class="field">
<span>Climate</span>
<select id="field-climate">
<option value="">From the location</option>
</select>
<small id="climate-hint" class="field__hint"></small>
</label>
<p id="form-hint" class="form__hint" hidden></p>
<button id="generate-button" type="submit" class="button">Generate world</button>
</form>
@@ -97,6 +105,7 @@
<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>
<span id="game-weather" class="sim-controls__weather" aria-live="polite"></span>
<button
id="play-pause"
type="button"