??皇菑臒o到有逐漸變大而是突然出現(xiàn)向左移動(dòng)?怎么回事?
?fruitObj.prototype.draw=function(){
? ? ? for(var i=0;i<this.num;i++){
? ? ? ? ? ? ?//draw
? ? ? ? ? ? ?//find an ang ,graw,fly up
? ? ? ? ? ? ?if(this.l[i]<=14){
? ? ? ? ? ? ?this.l[i]+=0.01*deltaTime;
? ? ? ? ?}
? ? ? ? ?else{
? ? ? ? ? this.y[i]-=0.07*deltaTime;
? ? ? ? ?}
? ? ? ? ? ? ?ctx2.drawImage(this.orange,this.x[i]-this.l[i]*0.5,this.y[i]-this.l[i]*0.5),this.l[i],this.l[i];
? ? ? ?
? ? ? }
?
?}
2017-06-02
?ctx2.drawImage(this.orange,this.x[i]-this.l[i]*0.5,this.y[i]-this.l[i]*0.5),this.l[i],this.l[i]; ?這句里面的“)”位置寫錯(cuò)了