diff --git a/scripts/game.js b/scripts/game.js index 27fea5e..26d9ec5 100644 --- a/scripts/game.js +++ b/scripts/game.js @@ -478,8 +478,8 @@ path.shift(); if (path.length <= 1) { - //Game.playerAllowedToMove = false; - //Game.engine.lock(); + Game.playerAllowedToMove = false; + Game.engine.lock(); combat(m, p); } else { drawTile(Game, m._x + "," + m._y, m); @@ -618,6 +618,8 @@ checkDeath(hitter); showScreen("game"); renderStats(Game.player.stats); + Game.playerAllowedToMove = true; + Game.engine.unlock(); } // this gets called when the player wins the game diff --git a/styles/game.css b/styles/game.css index 5b8e1c6..47da313 100644 --- a/styles/game.css +++ b/styles/game.css @@ -321,7 +321,7 @@ a:hover { } #win { - background: url(01coin.gif); + background: url(./../images/01coin.gif); background-size: 20%; }