From e2569017a3139a81d61112eeca57775ac4d47048 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 11 Nov 2017 14:33:08 +0100 Subject: [PATCH] Update: CC - Entity Loaded - Moorcow (o73bkh2tlq.js) 431 bytes modified --- o73bkh2tlq.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 */