I am trying to visualize a large map using SpriteKit
and JSTileMap
. The size of the map is 3398 x 4842
.
I have defined a TMX map by using 4 tiles of size 1699 x 2421 in one layer, with each tile matching a tileset.
Here is the tmx:
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="2" height="2" tilewidth="1699" tileheight="2421">
<tileset firstgid="1" name="BL" tilewidth="1699" tileheight="2421">
<image source="new_york_map_bl@2x.jpg" width="1699" height="2421"/>
</tileset>
<tileset firstgid="2" name="BR" tilewidth="1699" tileheight="2421">
<image source="new_york_map_br@2x.jpg" width="1699" height="2421"/>
</tileset>
<tileset firstgid="3" name="TL" tilewidth="1699" tileheight="2421">
<image source="new_york_map_tl@2x.jpg" width="1699" height="2421"/>
</tileset>
<tileset firstgid="4" name="TR" tilewidth="1699" tileheight="2421">
<image source="new_york_map_tr@2x.jpg" width="1699" height="2421"/>
</tileset>
<layer name="Main Layer" width="2" height="2">
<data encoding="base64" compression="zlib">
eJxjZmBgYAFiRiBmAmIAAIAACw==
</data>
</layer>
</map>
While i am able to see the TMX map using the Tiled
Software I can't visualize the map within xode with SpriteKit
and JSTileMap
. The loading part seems to be handled correctly but i can't visualize anything: I have a black screen with label: 0 nodes / 0 draws. Is there any possible lead of what could prevent from visualising my map properly?