diff --git a/2oppg7ptas.js b/2oppg7ptas.js index 2f3ddbb..884da87 100644 --- a/2oppg7ptas.js +++ b/2oppg7ptas.js @@ -4,10 +4,7 @@ if (this.parentEntity === data.entity) { return; } -if (!this.initialized) { - - var texture = GameLib.EntityManager.Instance.findComponentById('77dqs286vu'); - +if (!this.initialized) { this.initialized = true; } @@ -46,12 +43,16 @@ ig.module( } ); - var size = GameLib.Utils.GetWindowSize(); + GameLib.Event.Subscribe( + GameLib.Event.GAME_START, + function(data) { + var size = GameLib.Utils.GetWindowSize(); + ig.main('1cvwv04mfw', Snake, 60, 64 * 16, 64*16, 1 ); + } + ); + + GameLib.Event.Emit(GAME_LOADED); - // Start your game - // 60fps, 320x240 pixels, scaled up by a factor of 2 - ig.main('1cvwv04mfw', Snake, 60, 64 * 16, 64*16, 1 ); - }); //@ sourceURL=entityLoaded.js \ No newline at end of file