fruitObj.prototype.draw = function(){
for (var i = 0; i < this.num; i++) {
// draw
//find an one,grow ,fly up
	
console.log(this.y[i]-this.orange.height * 0.5);
ctx2.drawImage(this.orange,this.x[i]-this.orange.width * 0.5,this.y[i]-this.orange.height * 0.5)
}
}
是因为老师将height 写成了 canHeight;
                for (var i = 0; i < this.num; i++) {
// draw
//find an one,grow ,fly up
console.log(this.y[i]-this.orange.height * 0.5);
ctx2.drawImage(this.orange,this.x[i]-this.orange.width * 0.5,this.y[i]-this.orange.height * 0.5)
}
}
是因为老师将height 写成了 canHeight;
                    
                    2017-04-13
                
            源代码:https://github.com/BlueSimle/tinyheart,记得给个start哦*^_^*
                
                    
                    2017-03-17
                
             
             
        







