Fix: stage timer - add bonus time, smoke particle
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user