Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSTimeMap doesn't support collection of images in a tiles #34

Open
shalevy2888 opened this issue Jul 16, 2015 · 2 comments
Open

JSTimeMap doesn't support collection of images in a tiles #34

shalevy2888 opened this issue Jul 16, 2015 · 2 comments

Comments

@shalevy2888
Copy link

Hi,

While trying to use the library (based on Ray Wenderlich's iOS Game Dev Guide, but downloaded the latest version) I created a map with 1 tile-set that has 2 images in it. Since I didn't want to work with TilePacker I didn't use an atlas image. Tiled support the creation of such maps. (I can send the map if required)

The problem with JSTileMap is in TMXTilesetInfo class, where the atlasTexture property holds a single texture. Obviously this class wasn't designed to work with several images.

I did a small hack to work with multiple images, just so that I can move forward with my project. I wouldn't recommend this change.

I would appreciate having a true support for these kind of maps.

Many thanks!
Shay

@slycrel
Copy link
Owner

slycrel commented Jul 18, 2015

Hi Shay,

can you get me an example map? I've not used a map with multiple images that are not different atlas images. To be clear, multiple atlas images are supported, but you probably already knew that.

@shalevy2888
Copy link
Author

Hi Jeremy,

I attached the example map and images. I didn’t use the compress format since I wanted to debug and see what was going wrong… 

Thanks for looking into this.

Shay

P.S. I also attached my fixes. Obviously they are just a patch and probably break some other mode. They are mostly marked with //shay

On 18 July 2015 at 7:25:18 PM, Jeremy Stone ([email protected]) wrote:

Hi Shay,

can you get me an example map? I've not used a map with multiple images that are not different atlas images. To be clear, multiple atlas images are supported, but you probably already knew that.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants