https://shenshiman.github.io/happyfish_game/index.html 盡管有很多問題 最終還是解決了,跟著老師打,可以學(xué)到很多
Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state."報(bào)錯重新下載圖片資源就行了,因?yàn)槿鄙賵D片,所以繪制不出來
最新回答 / 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