uberpong/dev/lib/game/entities/paddle.js

26 lines
411 B
JavaScript
Raw Normal View History

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