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();
|
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
|
||||||
|
|
|
||||||
|
|
@ -321,7 +321,7 @@ a:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
#win {
|
#win {
|
||||||
background: url(01coin.gif);
|
background: url(./../images/01coin.gif);
|
||||||
background-size: 20%;
|
background-size: 20%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue