added combat option for multiple enemies and fixed missing link to coin.gif on winning screen

This commit is contained in:
Patryk Hegenberg 2023-01-07 20:17:50 +01:00
parent a22e9e250a
commit d7a19021dd
2 changed files with 5 additions and 3 deletions

View file

@ -478,8 +478,8 @@
path.shift(); path.shift();
if (path.length <= 1) { if (path.length <= 1) {
//Game.playerAllowedToMove = false; Game.playerAllowedToMove = false;
//Game.engine.lock(); Game.engine.lock();
combat(m, p); combat(m, p);
} else { } else {
drawTile(Game, m._x + "," + m._y, m); drawTile(Game, m._x + "," + m._y, m);
@ -618,6 +618,8 @@
checkDeath(hitter); checkDeath(hitter);
showScreen("game"); showScreen("game");
renderStats(Game.player.stats); renderStats(Game.player.stats);
Game.playerAllowedToMove = true;
Game.engine.unlock();
} }
// this gets called when the player wins the game // this gets called when the player wins the game

View file

@ -321,7 +321,7 @@ a:hover {
} }
#win { #win {
background: url(01coin.gif); background: url(./../images/01coin.gif);
background-size: 20%; background-size: 20%;
} }