I know the method for drawing a region of a texture in slick2d:
image.draw(x, y, srcX, srcY, srcX2, srcY2);
But I have no idea how the texture coordinates work. To draw a region of x:16, y:16, width:32, height:16
from a texture. I tried:
image.draw(0, 0, 16, 16, 32, 16);
and I have tried many other things with no luck. All I get is weirdly cropped and stretched images. Help?