Update: CC - Mouse Move - Moorcow (fsilsam72g.js) 38 bytes modified
parent
3be5576b4d
commit
86cc6b42c0
|
@ -1,3 +1,7 @@
|
|||
if (!this.entityLoaded) {
|
||||
return;
|
||||
}
|
||||
|
||||
var camera = GameLib.EntityManager.Instance.findComponentById('knwkksjc7n');
|
||||
camera.lookAt.x = (-1 * (window.innerWidth / 2 - data.event.x)) * 0.025;//(window.clientWidth/ 2) + data.event.x;
|
||||
camera.lookAt.y = (((window.innerHeight / 2 - data.event.y)) * 0.05) - 8;
|
||||
|
|
Loading…
Reference in New Issue