added combat option for multiple enemies and fixed missing link to coin.gif on winning screen
This commit is contained in:
parent
a22e9e250a
commit
d7a19021dd
2 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue