Jump to content

tilemap not displaying properly


Recommended Posts

So I'm having an issue trying to get a tilemap working properly.

I made my tilemap in Tiled.

JSON: http://intheexpanse.com/rpg/levels/level4.json

Image: http://intheexpanse.com/rpg/images//base_out_atlas.png

Code: http://intheexpanse.com/rpg/js/main.js

Any ideas what I'm doing wrong?


I've used multiple tilemaps from different sources and they all have similar display errors.


Thank you.

Link to comment
Share on other sites

The first parameter for addTileSetImage must match the name of the tileset in the map file.

Here is your example working:



(I also edited the level file to not only contain green tiles - I also changed path in the main.js because my server layout isn't the same.)

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...