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(); };