Is it possible to grab a specific rectangle area in a texture and then draw it? I am working with a tilemaps-like system where I have all my assets in a single file. I want my multiple game objects to retrieve specific areas of the tileset.
Image.load_tiles returns array of tiles with given size
But to load a portion of image, there's a constructor:
Image.new(window, filename, tileable, src_x, src_y, src_width, src_height)
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill