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();
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

View file

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