Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I programatically extract tiles from a tileset such as this one:

I want to use these tiles in my game. I see that some tiles here are of different sizes (or maybe all tiles are a multiple of some fixed size). For example, if I want to use one of the tree tiles in my program, how can I figure out what offset into the tileset image I must use, and how big of a sub-image i must extract? I don't see any metadata associated with any of these tilesets that I can use.


share|improve this question
up vote 3 down vote accepted

You generally need some text file or other metadata to describe the contents of a texture atlas like this.

I suspect you went here: to get this URL? (That would've been handy in your OP.)

If so, you must've missed this note:

To use the tile set in Tiled v0.8, get the necessary files from the Flare git repo.

The git repo is:

Its got one .txt several .tmx files. The .tmx files seem to describe the location of specific items in the atlases.

share|improve this answer
Yeah I missed that. Thanks a bunch! – Mayank Jul 19 '12 at 17:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.