diff --git a/o73bkh2tlq.js b/o73bkh2tlq.js index 2f7009e..017cfb3 100644 --- a/o73bkh2tlq.js +++ b/o73bkh2tlq.js @@ -38,6 +38,25 @@ this.star = GameLib.EntityManager.Instance.findComponentById('tmut3carec'); this.burger = GameLib.EntityManager.Instance.findComponentById('j88zs01szc'); this.parcel = GameLib.EntityManager.Instance.findComponentById('l91pfxkwml'); +this.camera = GameLib.EntityManager.Instance.findComponentById('k9ain64rlp'); + +GameLib.Event.Emit( + GameLib.Event.GET_GRAPHICS_IMPLEMENTATION, + null, + function(graphics) { + this.graphics = graphics + }.bind(this) +); + +this.mouse = new GameLib.Mouse(this.graphics); +this.raycaster = new GameLib.D3.Raycaster(this.graphics); + +/** + * Link some objects + */ +this.mouseMove.mouse = this.mouse; +this.mouseMove.raycaster = this.raycaster; + /** * Plant all our trees */