From 723c7d7ec7efddde4a629dd4613aedbdd24ba604 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Thu, 22 Mar 2018 11:52:44 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 264 bytes modified --- 21g30t1e75.js | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 39e6f79..548634c 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -949,26 +949,25 @@ GameLib.Event.Subscribe( this.initializeGrid(); - this.snake = [ - this.createGameObject( - GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY, - GameLib.CustomCode.BODY_TYPE_BREAD_HEAD, - { - x : 4, - y : 4 - }, - GameLib.CustomCode.ORIENTATION_UP - ), - this.createGameObject( - GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY, - GameLib.CustomCode.BODY_TYPE_BREAD_HEAD, - { - x : 4, - y : 3 - }, - GameLib.CustomCode.ORIENTATION_UP - ) - ]; + this.createGameObject( + GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY, + GameLib.CustomCode.BODY_TYPE_BREAD_HEAD, + { + x : 4, + y : 4 + }, + GameLib.CustomCode.ORIENTATION_UP + ); + + this.createGameObject( + GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY, + GameLib.CustomCode.BODY_TYPE_BREAD_TAIL, + { + x : 4, + y : 3 + }, + GameLib.CustomCode.ORIENTATION_UP + ); //this.visualizeGrid();