bendangelo / EntityJS

HTML5 entity-component game engine
Other
185 stars 24 forks source link

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

Open benekastah opened 11 years ago

benekastah commented 11 years ago

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 commented 11 years ago

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