Fix: move burn black meat to the trash can

This commit is contained in:
2019-12-10 20:46:43 +09:00
parent fd13296cdf
commit f1c4d918a8
9 changed files with 147 additions and 64 deletions
+8 -8
View File
@@ -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;