Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 76 bytes modified
parent
d8dd565b40
commit
4045c121bc
|
@ -526,7 +526,7 @@ GameLib.CustomCode.SnakeBody = function(
|
||||||
|
|
||||||
GameLib.CustomCode.GameObject.call(
|
GameLib.CustomCode.GameObject.call(
|
||||||
this,
|
this,
|
||||||
GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY,
|
GameLib.Object.OBJECT_TYPE_SNAKE_BODY,
|
||||||
type,
|
type,
|
||||||
mesh,
|
mesh,
|
||||||
position
|
position
|
||||||
|
@ -946,7 +946,8 @@ GameLib.Event.Subscribe(
|
||||||
};
|
};
|
||||||
|
|
||||||
this.snake = [
|
this.snake = [
|
||||||
new GameLib.CustomCode.SnakeBody(
|
this.createGameObject(
|
||||||
|
GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY,
|
||||||
GameLib.CustomCode.BODY_TYPE_BREAD_HEAD,
|
GameLib.CustomCode.BODY_TYPE_BREAD_HEAD,
|
||||||
{
|
{
|
||||||
x : 4,
|
x : 4,
|
||||||
|
@ -954,8 +955,9 @@ GameLib.Event.Subscribe(
|
||||||
},
|
},
|
||||||
GameLib.CustomCode.ORIENTATION_UP
|
GameLib.CustomCode.ORIENTATION_UP
|
||||||
),
|
),
|
||||||
new GameLib.CustomCode.SnakeBody(
|
this.createGameObject(
|
||||||
GameLib.CustomCode.BODY_TYPE_BREAD_TAIL,
|
GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY,
|
||||||
|
GameLib.CustomCode.BODY_TYPE_BREAD_HEAD,
|
||||||
{
|
{
|
||||||
x : 4,
|
x : 4,
|
||||||
y : 3
|
y : 3
|
||||||
|
|
Loading…
Reference in New Issue