Update: impac-snake-loaded (2oppg7ptas.js) 560 bytes modified

beta.r3js.org
-=yb4f310 2018-03-05 17:45:00 +01:00
parent d48b1d4d41
commit 1d95fa92fb
1 changed files with 0 additions and 19 deletions

View File

@ -11,25 +11,6 @@ if (!this.initialized) {
this.initialized = true;
}
ig.System.inject({
init : function( canvasId, fps, width, height, scale ) {
this.fps = fps;
this.clock = new ig.Timer();
this.canvas = GameLib.EntityManager.Instance.findComponentById(canvasId).instance;
this.resize( width, height, scale );
this.context = this.canvas.getContext('2d');
this.getDrawPos = ig.System.drawMode;
// Automatically switch to crisp scaling when using a scale
// other than 1
if( this.scale != 1 ) {
ig.System.scaleMode = ig.System.SCALE.CRISP;
}
ig.System.scaleMode( this.canvas, this.context );
}
})
ig.module(
'game.impact-test'