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 );

});

@@ -7,11 +7,8 @@
 ule(
- %0A%09
 'gam
@@ -18,10 +18,8 @@
 ain'
- %0A
 )%0A.r
@@ -57,16 +57,62 @@
 ct.font'
+,%0A%09'game.entities.hero',%0A%09'game.levels.level1'
 %0A)%0A.defi
@@ -127,17 +127,17 @@
 tion()%7B%0A
-%0A
+%09
 MyGame =
@@ -159,148 +159,247 @@
 (%7B%0A%09
-%0A%09// Load a font%0A%09font: new ig.Font( 'media/04b03.font.png' ),%0A%09%0A%09%0A%09init: function() %7B%0A%09%09// Initialize your game here; bind keys etc.%0A
+%09init: function() %7B%0A%09%09%09// bind our keys to friendly input names%0A%09%09%09ig.input.bind( ig.KEY.LEFT_ARROW, 'left' );%0A%09%09%09ig.input.bind( ig.KEY.RIGHT_ARROW, 'right' );%0A%09%09%09ig.input.bind( ig.KEY.C, 'shoot' );%0A%0A%09%09%09this.loadLevel(LevelLevel1);%0A%09
 %09%7D,%0A
-%09
 %0A
+%09
 %09upd
@@ -418,16 +418,17 @@
 n() %7B%0A%09%09
+%09
 // Updat
@@ -455,32 +455,33 @@
 ackgroundMaps%0A%09%09
+%09
 this.parent();%0A%09
@@ -485,62 +485,13 @@
 ;%0A%09%09
-%0A%09%09// Add your own, additional update code here%0A%09
 %7D,%0A
-%09
 %0A
+%09
 %09dra
@@ -506,16 +506,17 @@
 ion() %7B%0A
+%09
 %09%09// Dra
@@ -551,16 +551,17 @@
 dMaps%0A%09%09
+%09
 this.par
@@ -573,177 +573,18 @@
 ;%0A%09%09
-%0A%09%09%0A%09%09// Add your own drawing code here%0A%09%09var x = ig.system.width/2,%0A%09%09%09y = ig.system.height/2;%0A%09%09%0A%09%09this.font.draw( 'It Works!', x, y, ig.Font.ALIGN.CENTER );%0A%09
 %7D%0A
+%09
 %7D);%0A%0A%0A
+%09
 // S
@@ -629,14 +629,14 @@
  of 
-320x24
+160x12
 0, s
@@ -641,16 +641,17 @@
  scaled%0A
+%09
 // up by
@@ -667,10 +667,11 @@
  of 
-2%0A
+4%0A%09
 ig.m
@@ -702,24 +702,23 @@
 60, 
-32
+16
 0, 
+1
 2
-4
 0, 
-2
+4
  );%0A
-%0A
 %7D);%0A

make the game main file really simple