Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 68 bytes modified

beta.r3js.org
-=yb4f310 2018-03-23 13:23:55 +01:00
parent 5c6fd841e5
commit 52b8b3d865
1 changed files with 8 additions and 2 deletions

View File

@ -500,9 +500,11 @@ GameLib.CustomCode.prototype.createGameObject = function(
array = this.food;
}
var isTail = false;
if (objectType === GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY) {
switch (type) {
switch (type) {
case GameLib.CustomCode.BODY_TYPE_BREAD_BACON :
mesh = this.createGameMesh(this.materialBreadBacon);
break;
@ -526,6 +528,7 @@ GameLib.CustomCode.prototype.createGameObject = function(
break;
case GameLib.CustomCode.BODY_TYPE_BREAD_TAIL :
mesh = this.createGameMesh(this.materialBreadTail);
isTail = true;
break;
case GameLib.CustomCode.BODY_TYPE_BREAD_CORNER :
mesh = this.createGameMesh(this.materialBreadCorner);
@ -555,7 +558,10 @@ GameLib.CustomCode.prototype.createGameObject = function(
type,
mesh,
position,
orientation
orientation,
null,
null,
isTail
)
gameObject.applyToMesh(true);
break;