uberpong/dev/lib/game/entities/paddle.js
Aaron Mueller b4c3d98984 Refactorthe score and make it global ...
Still full of bugs and crap ...
2013-04-18 21:55:26 +02:00

25 lines
411 B
JavaScript

ig.module(
'game.entities.paddle'
)
.requires(
'impact.entity'
)
.defines(function(){
EntityPaddle = ig.Entity.extend({
size: {x: 30, y: 120},
collides: ig.Entity.COLLIDES.FIXED,
type: ig.Entity.TYPE.A,
animSheet: new ig.AnimationSheet('media/paddle.png', 30, 120),
maxVel: {x: 0, y: 400},
init: function(x, y, settings) {
this.parent(x, y, settings);
this.addAnim('idle', 1, [0]);
}
});
});