Files
kaltaquise-gamification/Cyst_Kid/js/screen-start.js
2026-04-16 17:20:19 +02:00

17 lines
368 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(){
this.state='start';
document.getElementById('start-screen').style.display='flex';
}
});