//baby body
this.babyBodyTimer += deltaTime;
if (this.babyBodyTimer > 300) {
this.babyBodyCount = this.babyBodyCount + 1;
this.babyEyeTimer %= 300;
if (this.babyBodyCount > 19) {
this.babyBodyCount = 19;
//game over
}
}
在this.babyBodyCount = this.babyBodyCount + 1;后面加上this.badyBodyTimer%=300;
图片不是最新的,图片缺失的原因