Update: impact_snake_loaded (o7s7v9qq97.js) 56 bytes modified
parent
d4717182bf
commit
c629e53501
|
@ -5,6 +5,13 @@ if (this.parentEntity === data.entity) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.initialized) {
|
||||||
|
|
||||||
|
var texture = GameLib.EntityManager.Instance.findComponentById('77dqs286vu');
|
||||||
|
|
||||||
|
this.initialized = true;
|
||||||
|
}
|
||||||
|
|
||||||
ig.System.inject({
|
ig.System.inject({
|
||||||
init : function( canvasId, fps, width, height, scale ) {
|
init : function( canvasId, fps, width, height, scale ) {
|
||||||
this.fps = fps;
|
this.fps = fps;
|
||||||
|
@ -51,6 +58,11 @@ ig.module(
|
||||||
|
|
||||||
console.log('init called');
|
console.log('init called');
|
||||||
this.loadLevel( LevelSnake );
|
this.loadLevel( LevelSnake );
|
||||||
|
},
|
||||||
|
|
||||||
|
draw : function() {
|
||||||
|
texture.instance.needsUpdate = true;
|
||||||
|
this.parent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -59,7 +71,7 @@ ig.module(
|
||||||
|
|
||||||
// Start your game
|
// Start your game
|
||||||
// 60fps, 320x240 pixels, scaled up by a factor of 2
|
// 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 );
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue