Add: bonus meat into game
This commit is contained in:
@@ -271,7 +271,17 @@ var Game = {
|
||||
if(meat.getMeatGrade() == Meat.DONENESS_WELLDONE) {
|
||||
this.god.animateHappy(Meat.DONENESS_WELLDONE); // "맛있어♥♡♥");
|
||||
|
||||
var score = this.getScore();
|
||||
// var score = this.getScore();
|
||||
var score = meat.getScore(Meat.DONENESS_WELLDONE);
|
||||
this.scoreManager.plusScore(score);
|
||||
|
||||
var tempPlusScore = new PlusScore(this.god.x, this.god.y - 180, score);
|
||||
this.plusScoreGroup.add(tempPlusScore);
|
||||
} else if(meat.getMeatGrade() == Meat.DONENESS_RARE) {
|
||||
this.god.animateAngry(Meat.DONENESS_RARE); // "날고기 싫어!!!");
|
||||
|
||||
// var score = this.getScore();
|
||||
var score = meat.getScore(Meat.DONENESS_WELLDONE);
|
||||
this.scoreManager.plusScore(score);
|
||||
|
||||
var tempPlusScore = new PlusScore(this.god.x, this.god.y - 180, score);
|
||||
@@ -279,17 +289,23 @@ var Game = {
|
||||
} else {
|
||||
this.badMeatCount++;
|
||||
|
||||
this.god.animateAngry(Meat.DONENESS_BURN_BLACK); // "탄 고기 안먹어!!!");
|
||||
/*
|
||||
if(meat.getMeatGrade() == Meat.DONENESS_RARE) {
|
||||
this.god.animateAngry(Meat.DONENESS_RARE); // "날고기 싫어!!!");
|
||||
} else { // Meat.DONENESS_BURN_BLACK
|
||||
this.god.animateAngry(Meat.DONENESS_BURN_BLACK); // "탄 고기 안먹어!!!");
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
meat.setActive(false, -100, -100, '');
|
||||
this.clearedMeatCount++;
|
||||
if(this.clearedMeatCount == this.activatedMeatCount) {
|
||||
this.clearStage();
|
||||
|
||||
if(meat.getClassName() == NormalMeat.CLASS_NAME) {
|
||||
this.clearedMeatCount++;
|
||||
if(this.clearedMeatCount == this.activatedMeatCount) {
|
||||
this.clearStage();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user