this.imgs[1].src = "images/furnaceof1.png";
this.imgs[2].src = "images/furnaceof2.png";
+ this.img_puff = [];
+ this.img_puff[0] = document.createElement('img');
+ this.img_puff[0].src = "images/puff.png";
+ this.img_puff[1] = document.createElement('img');
+ this.img_puff[1].src = "images/puff2.png";
+
this.image = this.imgs[0];
this.size.x = 64;
this.size.y = 96;
thatManager.addWidget(new MessageWidgetClass(thatManager, [s + that.basePoint + "ポイントのパンをゲットした。\n"]));
that.isSelecting = false;
that.isBaking = false;
+ this.bakingCount = 0;
this.image = this.imgs[0];
}
}
}
return p;
},
+ draw : function(x, y)
+ {
+ BakingOvenObjectClass.base.prototype.draw.apply(this, [x, y]);
+
+ if(this.bakingCount > 80)
+ {
+ var puff = this.bakingCount - 80;
+ if(puff > 40)puff = 40;
+ var opacity = 0.5 * (puff / 40) + (this.ownerStage.manager.tickCount % 10) / 20;
+ this.ownerStage.mainContext.save();
+ this.ownerStage.mainContext.globalAlpha = opacity;
+ this.ownerStage.mainContext.drawImage(this.img_puff[this.ownerStage.manager.tickCount % 20 < 10 ? 0 : 1], x - 32 , y - 400, 320, 480);
+ this.ownerStage.mainContext.restore();
+ }
+ }
});
\ No newline at end of file