INNER CODE UNIT · JavaScript
die
city41/breakouts · breakouts/stagejs/app.js:275
function die() {
lives--;
(lives <= 0) ? gameover() : start();
}
function gameover() {
updateStatus();
clear();
init();
}
function init() {
level = 0, lives = 3, score = 0, over = true;
updateMessage("Click to start!");
paddle.ui.hide();
ui.logo.tween(500).clear(true).pin("alpha", 1);
}