最赞回答 / kateonline
fruitObj.prototype.born = function (i) { var aneId = Math.floor(Math.random() * ane.num); this.aneNO[i]=aneId; this.x[i] = ane.headx[aneId];//确定起始位置 this.y[i] = ane.heady[aneId];//确定起始位置 this.l[i] = 0; this.alive[i]=true; var ran=Math...
2015-10-30
最新回答 / 小王子抓猫咪
啥都别写,直接在draw里面画一个固定位置的园,如果能画出来,就说明你在draw中间写的代码有问题。可能的问题就是变量赋值不对或者变量未定义,又或者对象为空。仔细找找原因。全局变量,局部变量,数组索引是否超出等等。
2015-10-23
最新回答 / 慕设计7269452
为什么我把Js文件导入进去了还是会显示 wave.born is not a function at momFruitsCollision (collision.js:26)
2015-10-20