Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 83 bytes modified
parent
5d613806ff
commit
8079273a9a
|
@ -139,7 +139,7 @@ GameLib.CustomCode.SnakeBody = function(
|
||||||
this.mesh = mesh;
|
this.mesh = mesh;
|
||||||
|
|
||||||
this.applyPositionToMesh();
|
this.applyPositionToMesh();
|
||||||
}.bind(this);
|
};
|
||||||
|
|
||||||
GameLib.CustomCode.SnakeBody.prototype.clone = function() {
|
GameLib.CustomCode.SnakeBody.prototype.clone = function() {
|
||||||
return new GameLib.CustomCode.SnakeBody(
|
return new GameLib.CustomCode.SnakeBody(
|
||||||
|
@ -243,8 +243,18 @@ GameLib.Event.Subscribe(
|
||||||
)
|
)
|
||||||
|
|
||||||
this.snake = [
|
this.snake = [
|
||||||
new GameLib.CustomCode.SnakeBody(GameLib.CustomCode.BODY_TYPE_HEAD),
|
new GameLib.CustomCode.SnakeBody(
|
||||||
new GameLib.CustomCode.SnakeBody(GameLib.CustomCode.BODY_TYPE_TAIL)
|
GameLib.CustomCode.BODY_TYPE_HEAD,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
this.meshEnd
|
||||||
|
),
|
||||||
|
new GameLib.CustomCode.SnakeBody(
|
||||||
|
GameLib.CustomCode.BODY_TYPE_TAIL,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
this.meshEnd
|
||||||
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue