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

29 lines
346 B
JavaScript
Raw Normal View History

ig.module(
'game.entities.goal'
)
.requires(
'impact.entity'
)
.defines(function(){
2012-06-24 10:50:26 +02:00
EntityGoal = ig.Entity.extend({
2012-06-24 10:50:26 +02:00
height: 90,
2012-06-24 10:50:26 +02:00
size: {x:48, y:48},
checkAgainst: ig.Entity.TYPE.B,
2012-06-24 10:50:26 +02:00
_wmScalable: true,
_wmDrawBox: true,
_wmBoxColor: '#00ff00',
2012-06-24 10:50:26 +02:00
check: function( other ) {
if(other.name == 'ball') {
other.reset();
}
2012-06-24 10:50:26 +02:00
}
2012-06-24 10:50:26 +02:00
});
2012-06-24 10:50:26 +02:00
});