Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 248 bytes modified
parent
a5d97482f2
commit
0cddf7cf86
|
@ -82,10 +82,12 @@ this.runtime = GameLib.Utils.GetRuntime();
|
||||||
*/
|
*/
|
||||||
this.beforeRender = GameLib.EntityManager.Instance.findComponentById('zjq6ach3jt');
|
this.beforeRender = GameLib.EntityManager.Instance.findComponentById('zjq6ach3jt');
|
||||||
this.keyUp = GameLib.EntityManager.Instance.findComponentById('306204wy29');
|
this.keyUp = GameLib.EntityManager.Instance.findComponentById('306204wy29');
|
||||||
|
this.touchStart = GameLib.EntityManager.Instance.findComponentById('0cw20zm4g7');
|
||||||
this.touchEnd = GameLib.EntityManager.Instance.findComponentById('0j2wxrtdf2');
|
this.touchEnd = GameLib.EntityManager.Instance.findComponentById('0j2wxrtdf2');
|
||||||
this.mouseDown = GameLib.EntityManager.Instance.findComponentById('gzewp2awcf');
|
this.mouseDown = GameLib.EntityManager.Instance.findComponentById('gzewp2awcf');
|
||||||
this.mouseUp = GameLib.EntityManager.Instance.findComponentById('ckplg6wqnl');
|
this.mouseUp = GameLib.EntityManager.Instance.findComponentById('ckplg6wqnl');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Geometries
|
* Geometries
|
||||||
*/
|
*/
|
||||||
|
@ -1843,6 +1845,9 @@ GameLib.Event.Subscribe(
|
||||||
|
|
||||||
this.mouseUp.initialized = false;
|
this.mouseUp.initialized = false;
|
||||||
this.mouseUp.entityLoaded = this;
|
this.mouseUp.entityLoaded = this;
|
||||||
|
|
||||||
|
this.touchStart.initialized = false;
|
||||||
|
this.touchStart.entityLoaded = this;
|
||||||
|
|
||||||
console.log('starting game snake');
|
console.log('starting game snake');
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
|
@ -1866,6 +1871,9 @@ GameLib.Event.Subscribe(
|
||||||
|
|
||||||
this.mouseUp.initialized = false;
|
this.mouseUp.initialized = false;
|
||||||
this.mouseUp.entityLoaded = null;
|
this.mouseUp.entityLoaded = null;
|
||||||
|
|
||||||
|
this.touchStart.initialized = false;
|
||||||
|
this.touchStart.entityLoaded = null;
|
||||||
|
|
||||||
console.log('starting game snake');
|
console.log('starting game snake');
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
|
|
Loading…
Reference in New Issue