Skip to content

Commit 5773f8c

Browse files
committed
Update generationEL
1 parent 4a2bb96 commit 5773f8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/game/Runner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,9 @@ export default class Runner {
320320

321321
const lives = this.tRexGroup.lives();
322322
if (lives > 0) {
323-
this.generationEl.innerText = `Generation #${Runner.generation} | T-Rex x ${this.tRexGroup.lives()}`;
323+
this.generationEl.innerText = `GENERATION #${Runner.generation} | LIVE x ${this.tRexGroup.lives()}`;
324324
} else {
325-
this.generationEl.innerText = 'GAME OVER';
325+
this.generationEl.innerHTML = `<div style="color: red;">GENERATION #${Runner.generation} | GAME OVER</div>`;
326326
}
327327
}
328328

0 commit comments

Comments
 (0)