Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 68 bytes modified
parent
5c6fd841e5
commit
52b8b3d865
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue