Add: Trash can
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user