最好更改下分值的计算方式,不能因为吃了一颗蓝宝石,就全部统一加200分。
dataObj.prototype.addScore=function(){
var Bluepoint = this.BlueFruit *200;
var Orangepoint = this.OrangeFruit *100;
this.score = Bluepoint + Orangepoint;
}
另外鱼妈妈的变形也要重新更换了。
dataObj.prototype.addScore=function(){
var Bluepoint = this.BlueFruit *200;
var Orangepoint = this.OrangeFruit *100;
this.score = Bluepoint + Orangepoint;
}
另外鱼妈妈的变形也要重新更换了。
2019-07-10
最新回答 / 无心妖
//分值计算var dataObj = function () { this.fruitNum = 0; this.double = 1; this.score = 0; this.gameOver = false; this.alpha = 0;}dataObj.prototype.draw = function(){ var w = can1.width; var h = can1.height; ctx1.save(); ctx1.shadoBlur = 10; ctx1.shadowColor =...
2019-06-23
不要加closePath(),老师胡乱说呢,如果画的圆不是全圆,closePath是将起始两个点用直线连接。。。。。。。这里画的是正圆,加不加都无所谓,加了多此一举
2019-04-06