--
You received this message because you are subscribed to the Google Groups "excaliburjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to excaliburjs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/excaliburjs/b30a3a8c-1269-48bb-adba-ca5704222bdb%40googlegroups.com.
Hi Andre,Tiled maps should be used as game resources, not necessarily as imported JSON (though that might be nice in the future).So basically you can use ex.Tiled.Resource or whatever the sample shows to load via relative path (pass to Loader) and it'll create the data structure and TileMap for you.
On Sun, Jul 21, 2019, 11:32 AM Andre Dantas <andre.d...@gmail.com> wrote:
--Hello friends,I've just started using Excalibur and I'm finding it an awesome engine, but I've had some problems adding my tiled map into my game.When importing my json file like this: import mapJson from '../assets/data/maps/map.json'; I get an object, instead of a path that I can use to instanciate TiledResource.The same issue ocurred when using the example-ts-webpack boilerplate.After a while, I decided to reimplement the getTileMap method from the plugin directly in my game, but the game fails to load when I add the tilemap into the scene. I think I get an infinite loop somewhere because Firefox hangs.Does anyone knows what might be happening?Thanks.Cheers.Andre D.
You received this message because you are subscribed to the Google Groups "excaliburjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to excal...@googlegroups.com.