為啥我的沒有????
為啥我的沒有海葵呢?
for(var i=0;i<this.num;i++){
//beginPath,moveTo,lineTo,stroke,strokeStyle,
//lineWidth,lineCap,globalAlpha
ctx2.beginPath();
ctx2.moveTo(this.x[i],canHeight);
ctx2.lineTo(this.x[i],canHeight-this.len[i]);
ctx2.lineWidth=10;
//ctx2.lineCap="round";
ctx2.strokeStyle="purple";
ctx2.stroke();
}
2018-12-25
在
function gameloop(){
// 繪制海葵
ane.draw();
}
加上ane.draw();
2018-08-24
只是看這個代碼應該沒什么問題吧,是不是其他的地方出了問題