class Game{
startGame () {
this.snake = new Snake();
this.start = true;
this.bgm.play();
};
pauseGame () {
this.start = false;
this.bgm.pause();
};
continuedGame () {
this.start = true;
this.bgm.play();
};
}
今天先理解到這邊~如果上述內容有出入,希望路過的朋友能俠義挺身糾正,感恩的心 ε= ᕕ( ᐛ )ᕗ