EntityJS
EntityJS copied to clipboard
Can't open .tmx files from scripts/levels
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?
Entityjs has some issues reading tmx files. I'm currently rewriting the game engine. This will be fix soon.