16 lines
344 B
JavaScript
16 lines
344 B
JavaScript
// ========== START SCREEN ==========
|
|
// Extends Game.prototype — must be loaded after game.js
|
|
|
|
Object.assign(Game.prototype, {
|
|
|
|
_start(){
|
|
this.lv=1;this.lives=3;this.sc=0;this.tt=0;this.td=0;
|
|
this.state='playing';this._ov(null);this._init();
|
|
},
|
|
|
|
_showStart(){
|
|
document.getElementById('start-screen').style.display='flex';
|
|
}
|
|
|
|
});
|