INNER CODE UNIT · JavaScript
init
city41/breakouts · breakouts/stagejs/app.js:286
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);
}
stage.on("click", function() {
if (over) {
over = false;
updateMessage("");
paddle.ui.show();
ui.logo.tween(500).clear(false).pin("alpha", 0).then(start);
}
});
function levelup() {
level++;