Fix: plus score with comma
This commit is contained in:
@@ -281,7 +281,8 @@ var Game = {
|
|||||||
var score = meat.getScore();
|
var score = meat.getScore();
|
||||||
this.scoreManager.plusScore(score);
|
this.scoreManager.plusScore(score);
|
||||||
|
|
||||||
var tempPlusScore = new PlusScore(this.god.x, this.god.y - 250, score);
|
var scoreWithComma = NumberUtil.numberWithCommas(score);
|
||||||
|
var tempPlusScore = new PlusScore(this.god.x, this.god.y - 250, scoreWithComma);
|
||||||
this.plusScoreGroup.add(tempPlusScore);
|
this.plusScoreGroup.add(tempPlusScore);
|
||||||
} else if(meat.getMeatGrade() == MeatBase.DONENESS_RARE) {
|
} else if(meat.getMeatGrade() == MeatBase.DONENESS_RARE) {
|
||||||
this.badMeatCount++;
|
this.badMeatCount++;
|
||||||
@@ -297,7 +298,8 @@ var Game = {
|
|||||||
var score = meat.getScore();
|
var score = meat.getScore();
|
||||||
this.scoreManager.plusScore(score);
|
this.scoreManager.plusScore(score);
|
||||||
|
|
||||||
var tempPlusScore = new PlusScore(this.god.x, this.god.y - 250, score);
|
var scoreWithComma = NumberUtil.numberWithCommas(score);
|
||||||
|
var tempPlusScore = new PlusScore(this.god.x, this.god.y - 250, scoreWithComma);
|
||||||
this.plusScoreGroup.add(tempPlusScore);
|
this.plusScoreGroup.add(tempPlusScore);
|
||||||
}
|
}
|
||||||
} else { // meat is burn black
|
} else { // meat is burn black
|
||||||
@@ -337,7 +339,8 @@ var Game = {
|
|||||||
var score = meat.getScore();
|
var score = meat.getScore();
|
||||||
this.scoreManager.plusScore(score);
|
this.scoreManager.plusScore(score);
|
||||||
|
|
||||||
var tempPlusScore = new PlusScore(this.trashCan.x, this.trashCan.y - 180, score);
|
var scoreWithComma = NumberUtil.numberWithCommas(score);
|
||||||
|
var tempPlusScore = new PlusScore(this.trashCan.x, this.trashCan.y - 180, scoreWithComma);
|
||||||
this.plusScoreGroup.add(tempPlusScore);
|
this.plusScoreGroup.add(tempPlusScore);
|
||||||
|
|
||||||
if(meat.getClassName() == NormalMeat.CLASS_NAME) {
|
if(meat.getClassName() == NormalMeat.CLASS_NAME) {
|
||||||
|
|||||||
Reference in New Issue
Block a user