//如果浮出屏幕寬度 那么果實就變為死亡狀態 并且重生
if(this.y[i] < 10){
this.active[i] = false;
this.born(i);
}
這樣寫更方便
if(this.y[i] < 10){
this.active[i] = false;
this.born(i);
}
這樣寫更方便
2016-11-07
直線的 直線的 直線的 同跪在這里,
怒復制以警示。
謝謝樓下 提醒一下大家
老師的重點&&邏輯真是一點也不清楚。。。不管怎樣,老師您辛苦了
搞了半天,解決漂浮直線和海葵不透明,在gameloop里面用cxt2畫背景圖片才能蓋住上一幀:
function gameloop(){
cxt2.drawImage(bg,0,0);
ane.draw();
fruit.draw();
}
怒復制以警示。
謝謝樓下 提醒一下大家
老師的重點&&邏輯真是一點也不清楚。。。不管怎樣,老師您辛苦了
搞了半天,解決漂浮直線和海葵不透明,在gameloop里面用cxt2畫背景圖片才能蓋住上一幀:
function gameloop(){
cxt2.drawImage(bg,0,0);
ane.draw();
fruit.draw();
}
2016-11-05