public bool hitImage(float tx, float ty, Texture2D texture, int x, int y) { return (x >= tx && x <= tx + texture.Width && y >= ty && y <= ty + texture.Height); }