comment leaving game timeout

This commit is contained in:
ntr 2018-12-11 16:36:58 +11:00
parent 13c50726bc
commit edc7faec5d
2 changed files with 6 additions and 6 deletions

View File

@ -82,11 +82,11 @@ class Combat extends Phaser.Scene {
if (startGame) { this.startGame(data); return true; } if (startGame) { this.startGame(data); return true; }
this.checkAnimation(data); this.checkAnimation(data);
// Game over? // Game over?
if (data.phase === 'Finish') { // if (data.phase === 'Finish') {
this.time.delayedCall(10000, () => { // this.time.delayedCall(10000, () => {
this.endGame(); // this.endGame();
}); // });
} // }
} }
return true; return true;
} }

View File

@ -47,7 +47,7 @@ class CrypRows extends Phaser.GameObjects.Group {
this.add(row); this.add(row);
const crypStat = (stat, j) => { const crypStat = (stat, j) => {
const STAT_X = 0; const STAT_X = ROW_X;
const STAT_Y = (j * TEXT_MARGIN) + ROW_Y + TEXT_MARGIN; const STAT_Y = (j * TEXT_MARGIN) + ROW_Y + TEXT_MARGIN;
const text = list.add.text(STAT_X, STAT_Y, `${stat.stat}: ${stat.base}`, TEXT.NORMAL); const text = list.add.text(STAT_X, STAT_Y, `${stat.stat}: ${stat.base}`, TEXT.NORMAL);