Fix: move burn black meat to the trash can
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
God.prototype = Object.create(Phaser.Sprite.prototype);
|
||||
God.prototype.constructor = God;
|
||||
|
||||
function God(x, y, mainGame) {
|
||||
function God(mainGame) {
|
||||
this.mainGame = mainGame;
|
||||
this.isActivated = true;
|
||||
|
||||
Phaser.Sprite.call(this, game, x, y, 'god_angry');
|
||||
Phaser.Sprite.call(this, game, God.POSITION_X, God.POSITION_Y, 'god_angry');
|
||||
this.anchor.setTo(0.5, 1);
|
||||
this.scale.set(0.5);
|
||||
|
||||
@@ -16,16 +16,16 @@ function God(x, y, mainGame) {
|
||||
game.add.existing(this);
|
||||
|
||||
this.speechBubble = new SpeechBubble();
|
||||
this.speechBubble.hideSpeechBubble();
|
||||
this.speechBubble.hide();
|
||||
|
||||
this.makeParticles(x, y);
|
||||
this.makeParticles();
|
||||
}
|
||||
|
||||
|
||||
God.prototype.makeParticles = function(x, y) {
|
||||
God.prototype.makeParticles = function() {
|
||||
game.physics.startSystem(Phaser.Physics.ARCADE);
|
||||
|
||||
this.fullHeartEmitter = game.add.emitter(x, y - 170, 20);
|
||||
this.fullHeartEmitter = game.add.emitter(God.POSITION_X, God.POSITION_Y - 170, 20);
|
||||
this.fullHeartEmitter.makeParticles("heart_full");
|
||||
// this.fullHeartEmitter.minParticleScale = 0.5;
|
||||
// this.fullHeartEmitter.maxParticleScale = 0.7;
|
||||
@@ -51,7 +51,7 @@ God.prototype.makeParticles = function(x, y) {
|
||||
God.EFFECT_LIFE_TIME_MS, Phaser.Easing.Quadratic.Out, false
|
||||
);
|
||||
|
||||
this.emptyHeartEmitter = game.add.emitter(x, y - 150, 20);
|
||||
this.emptyHeartEmitter = game.add.emitter(God.POSITION_X, God.POSITION_Y - 150, 20);
|
||||
this.emptyHeartEmitter.makeParticles("heart_empty");
|
||||
this.emptyHeartEmitter.minParticleScale = 0.5;
|
||||
this.emptyHeartEmitter.maxParticleScale = 0.7;
|
||||
@@ -59,7 +59,7 @@ God.prototype.makeParticles = function(x, y) {
|
||||
this.emptyHeartEmitter.maxParticleSpeed.setTo(150, -500);
|
||||
this.emptyHeartEmitter.gravity = 1500;
|
||||
|
||||
this.angryEmitter = game.add.emitter(x, y - 200, 20);
|
||||
this.angryEmitter = game.add.emitter(God.POSITION_X, God.POSITION_Y - 200, 20);
|
||||
this.angryEmitter.makeParticles("smoke");
|
||||
this.angryEmitter.width = God.HEAD_WIDTH;
|
||||
this.angryEmitter.height = God.HEAD_HEIGHT;
|
||||
|
||||
Reference in New Issue
Block a user