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

30 lines
470 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({
2012-06-24 10:50:26 +02:00
name: 'paddle',
2012-07-06 17:09:07 +02:00
scores: 0, // TODO: whats this?
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},
2012-06-24 10:50:26 +02:00
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
});