Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 203 bytes modified
parent
305abbb78c
commit
548f2a9712
|
@ -9,6 +9,7 @@ if (this.parentEntity === data.entity) {
|
||||||
*/
|
*/
|
||||||
GameLib.CustomCode.BODY_TYPE_NORMAL = 0x1;
|
GameLib.CustomCode.BODY_TYPE_NORMAL = 0x1;
|
||||||
GameLib.CustomCode.BODY_TYPE_TAIL = 0x2;
|
GameLib.CustomCode.BODY_TYPE_TAIL = 0x2;
|
||||||
|
GameLib.CustomCode.BODY_TYPE_CORNER = 0x3;
|
||||||
|
|
||||||
GameLib.CustomCode.GRID_WIDTH = 11;
|
GameLib.CustomCode.GRID_WIDTH = 11;
|
||||||
GameLib.CustomCode.GRID_HEIGHT = 11;
|
GameLib.CustomCode.GRID_HEIGHT = 11;
|
||||||
|
@ -129,7 +130,8 @@ this.meshPatty = this.createGameMesh(this.imagePatty);
|
||||||
GameLib.CustomCode.SnakeBody = function(
|
GameLib.CustomCode.SnakeBody = function(
|
||||||
mesh,
|
mesh,
|
||||||
position,
|
position,
|
||||||
orientation
|
orientation,
|
||||||
|
bodyType
|
||||||
) {
|
) {
|
||||||
|
|
||||||
if (GameLib.Utils.UndefinedOrNull(mesh)) {
|
if (GameLib.Utils.UndefinedOrNull(mesh)) {
|
||||||
|
@ -150,6 +152,12 @@ GameLib.CustomCode.SnakeBody = function(
|
||||||
}
|
}
|
||||||
this.orientation = orientation;
|
this.orientation = orientation;
|
||||||
|
|
||||||
|
if (GameLib.Utils.UndefinedOrNull(bodyType)) {
|
||||||
|
bodyType = GameLib.CustomCode.BODY_TYPE_NORMAL;
|
||||||
|
}
|
||||||
|
this.orientation = orientation;
|
||||||
|
|
||||||
|
|
||||||
this.applyToMesh();
|
this.applyToMesh();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue