code: public boolean contains(int xp, int yp) {
  		if (xp < x) {
  			return false;
  		}
  		if (yp < y) {
  			return false;
  		}
  		if (xp >= x+width) {
  			return false;
  		}
  		if (yp >= y+height) {
  			return false;
  		}
  		
  		return true;
  	}
docs: Check if this sprite location contains the given x,y position
  
  @param xp The x position of the sprite
  @param yp The y position of the sprite
  @return True if the sprite contains the point