From a4fc4562e9cc78b148442a6a8f85d3a315d86962 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 27 Feb 2018 13:52:22 +0100 Subject: [PATCH] Update: CC - Entity Loaded - Impact Test (3w66vzyd6a.js) 68 bytes modified --- 3w66vzyd6a.js | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/3w66vzyd6a.js b/3w66vzyd6a.js index f5399e0..963159e 100644 --- a/3w66vzyd6a.js +++ b/3w66vzyd6a.js @@ -16,16 +16,21 @@ ig.module( // code for this module // Create your own game class - MyGame = ig.Game.extend({ - init: function() { - // initialize your game world, bind some - // keys, etc. - ig.input.bind( ig.KEY.SPACE, 'jump' ); + MyGame = ig.Game.extend( + + { + font: new ig.Font( 'media/04b03.font.png' ), + + init: function() { + // initialize your game world, bind some + // keys, etc. + ig.input.bind( ig.KEY.SPACE, 'jump' ); - console.log('init called'); - //this.loadLevel( LevelMyGame1 ); + console.log('init called'); + //this.loadLevel( LevelMyGame1 ); + } } - }); + ); // Start your game // 60fps, 320x240 pixels, scaled up by a factor of 2