ig.module( 
	'game.main' 
)
.requires(
	'impact.game',
	'impact.font'
)
.defines(function(){

MyGame = ig.Game.extend({
	
	// Load a font
	font: new ig.Font( 'media/04b03.font.png' ),
	
	
	init: function() {
		// Initialize your game here; bind keys etc.
	},
	
	update: function() {
		// Update all entities and backgroundMaps
		this.parent();
		
		// Add your own, additional update code here
	},
	
	draw: function() {
		// Draw all entities and backgroundMaps
		this.parent();
		
		
		// Add your own drawing code here
		var x = ig.system.width/2,
			y = ig.system.height/2;
		
		this.font.draw( 'It Works!', x, y, ig.Font.ALIGN.CENTER );
	}
});


// Start the Game with 60fps, a resolution of 320x240, scaled
// up by a factor of 2
ig.main( '#canvas', MyGame, 60, 320, 240, 2 );

});

ig.module('game.main')
.requires(
	'impact.game',
	'impact.font',
	'game.entities.hero',
	'game.levels.level1'
)
.defines(function(){
	MyGame = ig.Game.extend({
		init: function() {
			// bind our keys to friendly input names
			ig.input.bind( ig.KEY.LEFT_ARROW, 'left' );
			ig.input.bind( ig.KEY.RIGHT_ARROW, 'right' );
			ig.input.bind( ig.KEY.C, 'shoot' );

			this.loadLevel(LevelLevel1);
		},

		update: function() {
			// Update all entities and backgroundMaps
			this.parent();
		},

		draw: function() {
			// Draw all entities and backgroundMaps
			this.parent();
		}
	});


	// Start the Game with 60fps, a resolution of 160x120, scaled
	// up by a factor of 4
	ig.main( '#canvas', MyGame, 60, 160, 120, 4 );
});

make the game main file really simple