https://shenshiman.github.io/happyfish_game/index.html 尽管有很多问题 最终还是解决了,跟着老师打,可以学到很多
Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state."报错重新下载图片资源就行了,因为缺少图片,所以绘制不出来
最新回答 / supjtr
for(var i=0; i<this.num; i++){ if(this.alive[i]){ //draw this.r[i] += deltaTime*0.04; if(this.r[i]>50){ this.alive[i] = false; continue; } var alpha = 1 - this.r[i]/50; ctx1.beginPath(); ctx1.arc(this.x[i], this.y[i], this.r[i]...
2016-08-29