Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 89 bytes modified
parent
f4026d4207
commit
716ce8da17
|
@ -175,6 +175,7 @@ GameLib.CustomCode.prototype.createGameMesh = function(image, visible) {
|
|||
/**
|
||||
* Create our objects
|
||||
*/
|
||||
/*
|
||||
this.meshBreadHead = this.createGameMesh(this.imageBreadHead, false);
|
||||
this.meshBreadHead.useQuaternion = false;
|
||||
|
||||
|
@ -193,7 +194,7 @@ this.meshOnion = this.createGameMesh(this.imageOnion, false);
|
|||
this.meshOnionRing = this.createGameMesh(this.imageOnionRing, false);
|
||||
this.meshPatty = this.createGameMesh(this.imagePatty, false);
|
||||
this.meshTomato = this.createGameMesh(this.imageTomato, false);
|
||||
|
||||
*/
|
||||
GameLib.CustomCode.prototype.createFood = function(delta) {
|
||||
|
||||
this.foodTime += delta;
|
||||
|
@ -210,22 +211,22 @@ GameLib.CustomCode.prototype.createFood = function(delta) {
|
|||
|
||||
switch (foodType) {
|
||||
case GameLib.CustomCode.FOOD_BACON :
|
||||
mesh = this.meshBacon.clone();
|
||||
mesh = this.createGameMesh(this.imageBacon);
|
||||
break;
|
||||
case GameLib.CustomCode.FOOD_CHEESE :
|
||||
mesh = this.meshCheese.clone();
|
||||
mesh = this.createGameMesh(this.imageCheese);
|
||||
break;
|
||||
case GameLib.CustomCode.FOOD_ONION :
|
||||
mesh = this.meshOnion.clone();
|
||||
mesh = this.createGameMesh(this.imageOnion);
|
||||
break;
|
||||
case GameLib.CustomCode.FOOD_ONION_RING :
|
||||
mesh = this.meshOnionRing.clone();
|
||||
mesh = this.createGameMesh(this.imageOnionRing);
|
||||
break;
|
||||
case GameLib.CustomCode.FOOD_PATTY :
|
||||
mesh = this.meshPatty.clone();
|
||||
mesh = this.createGameMesh(this.imagePatty);
|
||||
break;
|
||||
case GameLib.CustomCode.FOOD_TOMATO :
|
||||
mesh = this.meshTomato.clone();
|
||||
mesh = this.createGameMesh(this.imageTomato);
|
||||
break;
|
||||
default :
|
||||
console.warn('unhandled food type');
|
||||
|
|
Loading…
Reference in New Issue