Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Draw a portion of a texture.
- - By Omegas7 Date 2012-07-13 18:28
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.

Gosu Ruby.
Parent - By lol_o2 Date 2012-07-13 20:13
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)
Up Topic Gosu / Gosu Exchange / Draw a portion of a texture.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill