问答详情
源自:1-3 眨眼睛

小鱼眼睛图片出不来

没有报错  为什么小鱼眼睛出不来

this.babyEyeTimer = 0;
this.babyEyeCount = 0;
this.babyEyeInterval = 1000;



this.babyEyeTimer += deltaTime;
if (this.babyEyeTimer > this.babyEyeInterval) {
this.babyEyeCount = (this.babyEyeCount + 1) % 2;//[0,1]
this.babyEyeTimer %= this.babyEyeInterval;

if(this.babyEyeCount==0){
 this.babyEyeInterval=Math.random()*1500+2000;
}else{
 this.babyEyeInterval=200;
}
}

var babyEyeCount=this.babyEyeCount;
ctx1.drawImage(babyEye[babyEyeCount], -babyEye[babyEyeCount].width * 0.5, -babyEye[babyEyeCount

提问者:HeyLuckyGirl 2015-12-28 22:47

个回答

  • 小胡3161632
    2016-09-15 14:06:01

    你还怎么解决的呢

  • _潇潇暮雨
    2016-01-07 13:08:37

    你看看是不是main.js中的小鱼眼睛的图片的路经不对.

  • 我心里
    2015-12-29 21:54:43

    你看看会不会是main.js里面有问题