0.1.5 : versionning
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -142,6 +142,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer id="app-footer" class="app-footer" aria-label="Version"></footer>
|
||||
|
||||
<script src="js/game.js"></script>
|
||||
<script src="js/editor.js"></script>
|
||||
<script src="js/rules.js"></script>
|
||||
|
||||
+5
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user