ctx1.save();
ctx1.shadowBlur= 10;
ctx1.shadowColor ='#fff';
//ctx1.shadowBlur = 10;
//ctx1.shadowColor = "white";
ctx1.fillStyle = "white";
ctx1.fillText("SCORE: " + this.score, w * 0.5 , h-20);
if(this.gameOver){
this.alpha += deltaTime * 0.0005;
if(this.alpha > 1){
this.alpha = 1;
}
ctx1.fillStyle = "rgba(255,255,255," + this.alpha + ")";
ctx1.fillText("GAME OVER", w * 0.5 , h * 0.5);
}
ctx1.restore();
没有 一切正常
这段没有错啊,你在控制台看看提示什么错误?