From a93b4c6552c926a74cc47e2fa9db8f8ca45ad312 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 27 Feb 2018 13:41:53 +0100 Subject: [PATCH] Update: CC - Entity Loaded - Impact Test (3w66vzyd6a.js) 128 bytes modified --- 3w66vzyd6a.js | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/3w66vzyd6a.js b/3w66vzyd6a.js index d863cbd..f189c1e 100644 --- a/3w66vzyd6a.js +++ b/3w66vzyd6a.js @@ -4,20 +4,34 @@ if (this.parentEntity === data.entity) { return; } -// 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' ); - - console.log('init called'); - //this.loadLevel( LevelMyGame1 ); - } +ig.module( + 'game.impact-test' +) +.requires( + 'impact.game', + 'impact.image' +) +.defines(function(){ + + // 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' ); + + console.log('init called'); + //this.loadLevel( LevelMyGame1 ); + } + }); + + // Start your game + // 60fps, 320x240 pixels, scaled up by a factor of 2 + ig.main('7fjxtzzexg', MyGame, 60, 320, 240, 2 ); + }); -// Start your game -// 60fps, 320x240 pixels, scaled up by a factor of 2 -ig.main('7fjxtzzexg', MyGame, 60, 320, 240, 2 ); //@ sourceURL=entityLoaded.js \ No newline at end of file