From c629e5350195775f85c178bfb66379921c692c30 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 2 Mar 2018 16:26:53 +0100 Subject: [PATCH] Update: impact_snake_loaded (o7s7v9qq97.js) 56 bytes modified --- o7s7v9qq97.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/o7s7v9qq97.js b/o7s7v9qq97.js index 05aae62..974750d 100644 --- a/o7s7v9qq97.js +++ b/o7s7v9qq97.js @@ -5,6 +5,13 @@ if (this.parentEntity === data.entity) { return; } +if (!this.initialized) { + + var texture = GameLib.EntityManager.Instance.findComponentById('77dqs286vu'); + + this.initialized = true; +} + ig.System.inject({ init : function( canvasId, fps, width, height, scale ) { this.fps = fps; @@ -51,6 +58,11 @@ ig.module( console.log('init called'); this.loadLevel( LevelSnake ); + }, + + draw : function() { + texture.instance.needsUpdate = true; + this.parent(); } } ); @@ -59,7 +71,7 @@ ig.module( // Start your game // 60fps, 320x240 pixels, scaled up by a factor of 2 - ig.main('#ov13qo2j1m', Snake, 60, 64 * 20, 64 * 20, 1 ); + ig.main('#ov13qo2j1m', Snake, 60, 64 * 16, 64*16, 1 ); });