UnderwaterApps / overlap2d

Overlap2D Game development toolkit for UI and Level design
Other
780 stars 224 forks source link

Tileset support #73

Open ghost opened 9 years ago

ghost commented 9 years ago

For me the way of adding assets to Overlap2D is pretty unusal. Most of the time I'm having a big tileset with all stuff in it, so crunching that up would be a huge pain and thus being able to use just specific areas of a given texture would be succulent.

azakhary commented 9 years ago

Could you tell a bit more about that. I or rather let me break this up in questions: 1) Where do you usually get that tileset from? Is it generated by some kind of software, do you draw it, is it downloaded? 2) How do you see "explaining" to Overlap2D the region data (what image is where on the tileset?)

Generally we use Atlas packs generated by libGDX texture packer. it crunches separate images into one big sprite atlas, and it also has data about region locations, so overlap2d can read that.

ghost commented 9 years ago

1) Well any of your options do apply, especially the last two, since you can, for the first one, workaround better. 2) Maybe by some additional JSON/XML file.

azakhary commented 9 years ago

Well you do have that when you use TexturePacker it has it's additional data file, and images the way you are used to. Why not use it? It's pretty standard.

azakhary commented 9 years ago

Although on the second thought, I do get it. you can import tile set and just specify the grid size, and Overlap2D can cut it for you. would be a neat feature.

ghost commented 9 years ago

Yes, this would be very useful!