b4c3d98984
Still full of bugs and crap ...
25 lines
411 B
JavaScript
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]);
|
|
}
|
|
|
|
});
|
|
|
|
});
|