Fix: stage timer - add bonus time, smoke particle

This commit is contained in:
2018-11-02 10:18:41 +09:00
parent cd70136b91
commit 5f82d6ccae
6 changed files with 57 additions and 116 deletions
+12 -5
View File
@@ -3,13 +3,20 @@ Smoke = function(type, x, y) {
// this.emitter = game.add.emitter(game.world.centerX, 500, 200);
this.emitter.makeParticles("smoke");
this.emitter.width = 50;
this.emitter.height = 50;
this.emitter.setRotation(0, 0);
this.emitter.width = 30;
this.emitter.height = 30;
this.emitter.setRotation(-90, 90);
this.emitter.setAlpha(0.3, 0.8);
// this.emitter.setScale(0.5, 1);
// this.emitter.setScale(0.2, 0.2);
this.emitter.minParticleScale = 0.5;
this.emitter.maxParticleScale = 1;
this.emitter.gravity = -300;
this.emitter.start(false, 1000, 100);
if(type == Meat.DONENESS_RARE)
this.emitter.start(false, 1000, 400);
else if(type == Meat.DONENESS_WELLDONE)
this.emitter.start(false, 1000, 200);
else if(type == Meat.DONENESS_BURN_BLACK)
this.emitter.start(false, 1000, 100);
this.stop();
this.changeColor(type);