* @param other The other entity to check collision against
* @return True if the entities collide with each other
*/
public boolean collidesWith(Entity other, float x, float y) {
Rectangle him = other.me;
Rectangle collision = new Rectangle(me.getX()+x,me.getY()+y,ENTITY_SPRITE_SIZE,ENTITY_SPRITE_SIZE);
//me.setBounds( me.getX()+x, me.getY()+y,ENTITY_SPRITE_SIZE/2,ENTITY_SPRITE_SIZE/2);
//him.setBounds( other.getX()*32 , other.getY()*32 ,other.ENTITY_SPRITE_SIZE/2,other.ENTITY_SPRITE_SIZE/2);
if (collision.intersects(him)){
this.collidedWith(other);
return true;
} else {
return false;
}