Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 151 bytes modified

beta.r3js.org
-=yb4f310 2018-03-09 19:22:13 +01:00
parent 0196338c78
commit 10561129cf
1 changed files with 8 additions and 0 deletions

View File

@ -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