From bbccfed9f2554db3546cf04731dae804c72e9038 Mon Sep 17 00:00:00 2001 From: Cedric Date: Thu, 11 Jun 2026 16:58:51 +0200 Subject: [PATCH] 0.1.5 : versionning --- css/style.css | 15 +++++++++++++++ index.html | 2 ++ js/game.js | 6 +++++- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/css/style.css b/css/style.css index 241ecee..241e225 100644 --- a/css/style.css +++ b/css/style.css @@ -5,6 +5,21 @@ body { color: #e8d9b0; font-family: Georgia, "Times New Roman", serif; min-height: 100vh; + padding-bottom: 1.75rem; +} + +.app-footer { + position: fixed; + bottom: 0; + left: 0; + right: 0; + padding: 5px 12px; + text-align: center; + font-size: 0.72em; + color: #6a5a40; + background: rgba(26, 20, 14, 0.92); + border-top: 1px solid #3a3020; + z-index: 200; } .screen { min-height: 100vh; } diff --git a/index.html b/index.html index 5631561..ae5a681 100644 --- a/index.html +++ b/index.html @@ -142,6 +142,8 @@ + + diff --git a/js/game.js b/js/game.js index 25769e0..2c31b97 100644 --- a/js/game.js +++ b/js/game.js @@ -4,6 +4,8 @@ "use strict"; +const APP_VERSION = "0.1.5"; + /* ================= Dés & règles de base ================= */ function rollDice(n, faces) { @@ -1267,6 +1269,8 @@ function bindKeys() { if (typeof document !== "undefined") { document.addEventListener("DOMContentLoaded", () => { + const footer = $("app-footer"); + if (footer) footer.textContent = `MountyCrawl v${APP_VERSION}`; initCreateScreen(); bindKeys(); $("btn-start").onclick = () => startGame(); @@ -1308,7 +1312,7 @@ if (typeof document !== "undefined") { /* Export pour les tests node */ if (typeof module !== "undefined" && module.exports) { module.exports = { - rollDice, resolveAttack, resolveSpell, masteryRoll, improveCost, levelFromTotalPI, killPX, + APP_VERSION, rollDice, resolveAttack, resolveSpell, masteryRoll, improveCost, levelFromTotalPI, killPX, RACES, MONSTER_TYPES, BOSS, TEMPLATES, makeMonster, monsterFromSpec, itemFromSpec, generateCavern, largestRegion, MAP_W, MAP_H, T_WALL, T_FLOOR, T_STAIRS,