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

Can't open .tmx files from scripts/levels #15

Open
benekastah opened this issue Mar 10, 2013 · 1 comment
Open

Can't open .tmx files from scripts/levels #15

benekastah opened this issue Mar 10, 2013 · 1 comment

Comments

@benekastah
Copy link

Using the platform template as my reference, it looks like .tmx files in scripts/levels are referring to assets as if they were in scripts rather than assets.

For example, the image here will not be found:

<tileset firstgid="1" name="tiles" tilewidth="25" tileheight="25">
  <image source="../images/tiles.png" width="200" height="25"/>
</tileset>

It looks like in order to edit levels, I have to move this file into assets/levels and then copy it back into scripts/levels when I'm done. If I open it in place, Tiled complains with this message:

Error loading tileset image:
'/Users/benekastah/dev/games/bronze/scripts/images/tiles.png'

Line 4, column 63

and won't open the file.

Am I missing something?

@bendangelo
Copy link
Owner

Entityjs has some issues reading tmx files. I'm currently rewriting the game engine. This will be fix soon.

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