From c13af1f8082459bc958f19b918c2879f4c9e1185 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 12 Mar 2018 08:22:29 +0100 Subject: [PATCH] Update: impact-snake-loaded (2oppg7ptas.js) 36 bytes modified --- 2oppg7ptas.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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