diff --git a/78gnds8jrj.js b/78gnds8jrj.js index 70fa678..1375d43 100644 --- a/78gnds8jrj.js +++ b/78gnds8jrj.js @@ -68,6 +68,12 @@ this.camera = GameLib.EntityManager.Instance.findComponentById('hd8dsn7o4c'); this.raycaster = GameLib.EntityManager.Instance.findComponentById('h3yxd73sz7'); this.mouse = GameLib.EntityManager.Instance.findComponentById('eriv6mcw8k'); +GameLib.CustomCode.prototype.loadLevel(index) { + var image = this['level' + index]; + + var heightData = image.getHeightData(); +} + GameLib.CustomCode.prototype.spawnRoadSections = function() { var cloneLeft = this.treesLeft.clone(); @@ -307,6 +313,8 @@ GameLib.Event.Subscribe( this.spawnRoadSections(); +this.loadLevel(1); + GameLib.Event.Emit(GameLib.Event.GAME_LOADED); //@ sourceURL=entityLoaded.js \ No newline at end of file