Add: meat classes

This commit is contained in:
2019-12-09 11:10:33 +09:00
parent 1dc49cfb94
commit 36298d7621
7 changed files with 439 additions and 13 deletions
+37
View File
@@ -0,0 +1,37 @@
BonusMeat.prototype = MeatBase.prototype;
BonusMeat.constructor = BonusMeat;
function BonusMeat() {
MeatBase.call(this);
this.loadTexture("bonus_meat");
this.setMeatTypeVariables()
}
BonusMeat.prototype.setMeatTypeVariables = function() {
this.cookingSpeed = BonusMeat.COOKING_SPEED_BURN_LEVEL_WEAK;
this.loadTexture('meat_burn1');
} else if(this.getMeatGradeBySide(Meat.MEAT_FRONT) == Meat.DONENESS_WELLDONE) {
this.loadTexture('meat_welldone1');
} else {
this.loadTexture('meat1');
this.spriteMeatBurnBlack =
}
BonusMeat.COOKING_SPEED_BURN_LEVEL_WEAK = 0.1;
BonusMeat.COOKING_SPEED_BURN_LEVEL_NORMAL = 0.2;
BonusMeat.COOKING_SPEED_BURN_LEVEL_STRONG = 0.3;
BonusMeat.SCORE_NAME_RARE = 10;
BonusMeat.SCORE_NAME_WELLDONE = 100;
BonusMeat.SCORE_NAME_BURN_BLACK = 0;
BonusMeat.SPRITE_NAME_RARE = "bonus_meat";
BonusMeat.SPRITE_NAME_WELLDONE = "bonus_meat_welldone";
BonusMeat.SPRITE_NAME_BURN_BLACK = "bonus_meat_burn";