From 548f2a9712db9be8ca80fadd68a841c374240c3f Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Thu, 15 Mar 2018 11:25:17 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 203 bytes modified --- 21g30t1e75.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 4fe4a82..fcfc6e6 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -9,6 +9,7 @@ if (this.parentEntity === data.entity) { */ GameLib.CustomCode.BODY_TYPE_NORMAL = 0x1; GameLib.CustomCode.BODY_TYPE_TAIL = 0x2; +GameLib.CustomCode.BODY_TYPE_CORNER = 0x3; GameLib.CustomCode.GRID_WIDTH = 11; GameLib.CustomCode.GRID_HEIGHT = 11; @@ -129,7 +130,8 @@ this.meshPatty = this.createGameMesh(this.imagePatty); GameLib.CustomCode.SnakeBody = function( mesh, position, - orientation + orientation, + bodyType ) { if (GameLib.Utils.UndefinedOrNull(mesh)) { @@ -150,6 +152,12 @@ GameLib.CustomCode.SnakeBody = function( } this.orientation = orientation; + if (GameLib.Utils.UndefinedOrNull(bodyType)) { + bodyType = GameLib.CustomCode.BODY_TYPE_NORMAL; + } + this.orientation = orientation; + + this.applyToMesh(); };