file cleanup

This commit is contained in:
Ruben Müller 2012-06-24 10:50:26 +02:00
parent e4a1a8b44d
commit 9f314ec95c
6 changed files with 96 additions and 97 deletions

View file

@ -6,7 +6,7 @@ ig.module(
) )
.defines(function(){ .defines(function(){
EntityBall = ig.Entity.extend({ EntityBall = ig.Entity.extend({
name: 'ball', name: 'ball',
@ -56,6 +56,6 @@ ig.module(
this.vel.y = (Math.random()*20) + 50; this.vel.y = (Math.random()*20) + 50;
} }
}); });
}); });

View file

@ -6,7 +6,7 @@ ig.module(
) )
.defines(function(){ .defines(function(){
EntityGoal = ig.Entity.extend({ EntityGoal = ig.Entity.extend({
height: 90, height: 90,
@ -23,6 +23,6 @@ ig.module(
} }
} }
}); });
}); });

View file

@ -7,7 +7,7 @@ ig.module(
) )
.defines(function(){ .defines(function(){
EntityPaddleEnemy = EntityPaddle.extend({ EntityPaddleEnemy = EntityPaddle.extend({
update: function(){ update: function(){
var ball = ig.game.getEntitiesByType( EntityBall )[0]; var ball = ig.game.getEntitiesByType( EntityBall )[0];
@ -21,6 +21,6 @@ ig.module(
this.parent(); this.parent();
} }
}); });
}); });

View file

@ -6,7 +6,7 @@ ig.module(
) )
.defines(function(){ .defines(function(){
EntityPaddlePlayer = EntityPaddle.extend({ EntityPaddlePlayer = EntityPaddle.extend({
animSheet: new ig.AnimationSheet( 'media/paddle-player.png', 64, 128 ), animSheet: new ig.AnimationSheet( 'media/paddle-player.png', 64, 128 ),
@ -24,6 +24,6 @@ ig.module(
this.parent(); this.parent();
} }
}); });
}); });

View file

@ -6,7 +6,7 @@ ig.module(
) )
.defines(function(){ .defines(function(){
EntityPaddle = ig.Entity.extend({ EntityPaddle = ig.Entity.extend({
name: 'paddle', name: 'paddle',
@ -24,6 +24,6 @@ ig.module(
this.addAnim( 'idle', 1, [0] ); this.addAnim( 'idle', 1, [0] );
} }
}); });
}); });

View file

@ -39,7 +39,6 @@ MyGame = ig.Game.extend({
} }
}); });
// Start the Game with 60fps, a resolution of 640x400 (16:10), scaled // Start the Game with 60fps, a resolution of 640x400 (16:10), scaled
// up by a factor of 2 // up by a factor of 2
ig.main( '#canvas', MyGame, 60, 640, 400, 1 ); ig.main( '#canvas', MyGame, 60, 640, 400, 1 );