From 1d0ba9efc4aaa0628337655ec9d12293853d9ac6 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 9 Mar 2018 01:45:57 +0100 Subject: [PATCH] Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 632 bytes modified --- 78gnds8jrj.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/78gnds8jrj.js b/78gnds8jrj.js index 143f051..2517019 100644 --- a/78gnds8jrj.js +++ b/78gnds8jrj.js @@ -16,6 +16,32 @@ this.mouseMove = GameLib.EntityManager.Instance.findComponentById('jz3qg0174l' this.snail = GameLib.EntityManager.Instance.findComponentById('z2izbq1hcz'); this.cloud = GameLib.EntityManager.Instance.findComponentById('jbvm17iwfx'); this.solar = GameLib.EntityManager.Instance.findComponentById('lq5xyiu8n4'); +this.treesLeft = GameLib.EntityManager.Instance.findComponentById('lq0rxnjq3n'); +this.treesRight = GameLib.EntityManager.Instance.findComponentById('oag0yr1rav'); +this.road = GameLib.EntityManager.Instance.findComponentById('4furha3wst'); + +/** + * Road Sections + */ +this.sections = []; + +var cloneLeft = this.treesLeft.clone(); +var cloneRoad = this.road.clone(); +var cloneRight = this.treesRight.clone(); + + +for (var i = 0; i < 20; i++) { + + this.sections.push({ + left : cloneLeft, + road : cloneRoad, + right : cloneRight + }) + + cloneLeft = cloneLeft.clone(); + cloneRoad = cloneRoad.clone(); + cloneRight = cloneRight.clone(); +} /** * Activate our custom code components