Add: Trash can
This commit is contained in:
@@ -62,18 +62,20 @@ var Game = {
|
||||
this.meatPlate.anchor.set(0.5);
|
||||
this.meatPlate.smoothed = false;
|
||||
|
||||
// this.heatPlate = game.add.image(game.world.centerX, Game.HEAT_PLATE_POSITION_Y, 'heat_plate');
|
||||
// this.heatPlate = game.add.image(game.world.centerX, HeatPlate.POSITION_Y, 'heat_plate');
|
||||
// this.heatPlate.anchor.set(0.5);
|
||||
// this.heatPlate.smoothed = false;
|
||||
// this.heatPlate.scale.set(1);
|
||||
|
||||
this.heatPlate = new HeatPlate(game.world.centerX, Game.HEAT_PLATE_POSITION_Y);
|
||||
this.stoveDial = new StoveDial(80, Game.HEAT_PLATE_POSITION_Y + 50);
|
||||
this.heatPlate = new HeatPlate();
|
||||
this.stoveDial = new StoveDial(80, Game.HEAT_PLATE_POSITION_Y + 70);
|
||||
this.stoveDial.setOnChangeDialLevelHandler(
|
||||
(function(dialLevel) { this.onChangeDialLevel(dialLevel); }).bind(this)
|
||||
);
|
||||
|
||||
this.god = new God(game.world.width - 120, Game.GOD_POSITION_Y + 100, this);
|
||||
this.trashCan = new TrashCan();
|
||||
|
||||
this.god = new God(God.POSITION_X, God.POSITION_Y, this);
|
||||
|
||||
// meat
|
||||
this.meatGroup = game.add.group();
|
||||
@@ -354,5 +356,4 @@ Game.GOD_OUT_OF_FACE_WIDTH = 30;
|
||||
Game.GOD_OUT_OF_FACE_HEIGHT = 30;
|
||||
|
||||
Game.MEAT_PLATE_POSITION_Y = 360;
|
||||
Game.GOD_POSITION_Y = 240;
|
||||
Game.HEAT_PLATE_POSITION_Y = GAME_SCREEN_SIZE.y / 2 + 220;
|
||||
Game.HEAT_PLATE_POSITION_Y = GAME_SCREEN_SIZE.y / 2 + 200;
|
||||
Reference in New Issue
Block a user