Update: impact_snake_loaded (o7s7v9qq97.js) 56 bytes modified

beta.r3js.org
-=yb4f310 2018-03-02 16:26:53 +01:00
parent d4717182bf
commit c629e53501
1 changed files with 13 additions and 1 deletions

View File

@ -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 );
});