Add: Trash can

This commit is contained in:
2019-12-06 11:33:30 +09:00
parent 2e14ebc10d
commit 86b7ca3f06
9 changed files with 38 additions and 10 deletions
+8 -1
View File
@@ -15,6 +15,11 @@ function God(x, y, mainGame) {
game.add.existing(this);
this.makeParticles(x, y);
}
God.prototype.makeParticles = function(x, y) {
game.physics.startSystem(Phaser.Physics.ARCADE);
this.fullHeartEmitter = game.add.emitter(x, y - 150, 20);
@@ -51,7 +56,6 @@ function God(x, y, mainGame) {
);
}
God.prototype.update = function() {
}
@@ -132,6 +136,9 @@ God.prototype.particleBurst = function(reaction) {
}
God.POSITION_X = GAME_SCREEN_SIZE.x - 120;
God.POSITION_Y = 340;
God.REACTION_HAPPY = 0;
God.REACTION_SMILE = 1;
God.REACTION_ANGRY = 2;