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,