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