From bc05b83e840c9ea6240efeca5b740fd73834aa00 Mon Sep 17 00:00:00 2001 From: elioat Date: Sun, 27 Oct 2024 16:34:41 -0400 Subject: * --- html/broughlike/index.html | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'html/broughlike/index.html') diff --git a/html/broughlike/index.html b/html/broughlike/index.html index a1d9650..5d3181d 100644 --- a/html/broughlike/index.html +++ b/html/broughlike/index.html @@ -76,33 +76,28 @@ combatDotBoss: '#b70030' }; - // FIXME: Scopingm and whatnot. // let hardMode = localStorage.getItem('hardMode') || false; - let hardModeModifier = 0; + // let hardModeModifier = hardMode ? 10 : 0; // const toggleHardMode = () => { // hardMode = !hardMode; // localStorage.setItem('hardMode', hardMode); // document.getElementById('toggleHardMode').textContent = hardMode ? 'Hard Mode Off' : 'Hard Mode On'; - // if (hardMode) { - // hardModeModifier = 10; - // } else { - // hardModeModifier = 0; - // } + // hardModeModifier = hardMode ? 10 : 0; // resetGame(); // }; - const GRID_SIZE = 6 + hardModeModifier; + const GRID_SIZE = 6; const PLAYER_HEALTH = 12; const PLAYER_MAX_HEALTH = 16; const PLAYER_BASE_DAMAGE = 1; - const ENEMY_CHASE_DISTANCE = 4 + hardModeModifier; + const ENEMY_CHASE_DISTANCE = 4; const ENEMY_BOSS_OCCURRENCE = 10; const MIN_ENEMIES_ON_LEVEL = 1; - const MAX_ENEMIES_ON_LEVEL = 4 + hardModeModifier; + const MAX_ENEMIES_ON_LEVEL = 4; const MAX_ENEMY_HEALTH = 7; const MIN_ENEMY_HEALTH = 2; const WALLS_MIN = 5; - const WALLS_MAX = 20 + hardModeModifier; + const WALLS_MAX = 20; const ITEMS_MIN = 1; const ITEMS_MAX = 3; const DOTS_PER_HIT = 7; -- cgit 1.4.1-2-gfad0