Fix: speech bubble

This commit is contained in:
2019-12-12 14:36:39 +09:00
parent 4bcfcaec42
commit ce0ffc62fc
8 changed files with 198 additions and 148 deletions
+12 -11
View File
@@ -73,14 +73,14 @@ var Game = {
this.meatPlate.scale.set(0.8);
this.meatPlate.smoothed = false;
this.trashCan = new TrashCan();
this.heatPlate = new HeatPlate();
this.stoveDial = new StoveDial(80, HeatPlate.POSITION_Y + 70);
this.stoveDial = new StoveDial(180, HeatPlate.POSITION_Y + 90);
this.stoveDial.setOnChangeDialLevelHandler(
(function(dialLevel) { this.onChangeDialLevel(dialLevel); }).bind(this)
);
this.trashCan = new TrashCan();
// meat
this.bonusMeatIndex = 0;
this.bonusMeatGroup = game.add.group();
@@ -263,7 +263,6 @@ var Game = {
},
isOverHeatPlate: function(x, y) {
return this.heatPlate.isOver(x, y);
},
@@ -276,10 +275,8 @@ var Game = {
if(!this.isPlaying)
return;
var meatClassName = meat.getClassName();
if(meat.getMeatGrade() == MeatBase.DONENESS_WELLDONE) {
this.god.animateHappy(meat);
this.god.animateHappy();
var score = meat.getScore();
this.scoreManager.plusScore(score);
@@ -289,7 +286,10 @@ var Game = {
} else if(meat.getMeatGrade() == MeatBase.DONENESS_RARE) {
this.badMeatCount++;
this.god.animateAngryWithRare(meat);
if(meat.getTotalCookingTime() == 0)
this.god.animateAngryWithRare();
else
this.god.animateSmile();
if(meat.getTotalCookingTime() > 0) {
var score = meat.getScore();
@@ -301,14 +301,14 @@ var Game = {
} else { // meat is burn black
this.badMeatCount++;
this.god.animateAngryWithBurnBlack(meat);
this.god.animateAngryWithBurnBlack();
return; // god doesn't eat burned black meat
}
meat.setActive(false, -100, -100);
if(meatClassName == NormalMeat.CLASS_NAME) {
if(meat.getClassName() == NormalMeat.CLASS_NAME) {
this.clearedMeatCount++;
if(this.clearedMeatCount == this.activatedMeatCount) {
this.clearStage();
@@ -320,7 +320,7 @@ var Game = {
return this.trashCan.isOver(x, y);
},
throwAway: function(meat) {
throwAwayMeat: function(meat) {
if(!this.isPlaying)
return;
@@ -361,6 +361,7 @@ var Game = {
var timeOverText = new TimeOverText();
if(!isExperienceMaestroAccount())
this.updateResultRecord();
this.stopAndGoResult();
},