Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 151 bytes modified
parent
0196338c78
commit
10561129cf
|
@ -68,6 +68,12 @@ this.camera = GameLib.EntityManager.Instance.findComponentById('hd8dsn7o4c');
|
||||||
this.raycaster = GameLib.EntityManager.Instance.findComponentById('h3yxd73sz7');
|
this.raycaster = GameLib.EntityManager.Instance.findComponentById('h3yxd73sz7');
|
||||||
this.mouse = GameLib.EntityManager.Instance.findComponentById('eriv6mcw8k');
|
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() {
|
GameLib.CustomCode.prototype.spawnRoadSections = function() {
|
||||||
|
|
||||||
var cloneLeft = this.treesLeft.clone();
|
var cloneLeft = this.treesLeft.clone();
|
||||||
|
@ -307,6 +313,8 @@ GameLib.Event.Subscribe(
|
||||||
|
|
||||||
this.spawnRoadSections();
|
this.spawnRoadSections();
|
||||||
|
|
||||||
|
this.loadLevel(1);
|
||||||
|
|
||||||
GameLib.Event.Emit(GameLib.Event.GAME_LOADED);
|
GameLib.Event.Emit(GameLib.Event.GAME_LOADED);
|
||||||
|
|
||||||
//@ sourceURL=entityLoaded.js
|
//@ sourceURL=entityLoaded.js
|
Loading…
Reference in New Issue