I'm trying to load a 32x22 map with tile size of H:32px W:32px created using Tiled. After following answers here and tutorials on how to load .tmx files using JSTileMap in SpriteKit, I attempted my own:
var worldNode: SKNode!
var tileMap: JSTileMap?
var backgroundLayer: SKNode!
func createWorld(){
tileMap = JSTileMap(named: "Room1.tmx");
if tileMap != nil {
backgroundLayer = SKNode()
backgroundLayer.addChild(tileMap!)
}
worldNode = SKNode()
worldNode.addChild(backgroundLayer!)
addChild(worldNode)
}
The map is successfully loaded. My question now is the number of nodes shown on the bottom right is over 700. It seems to be quite high or is it normal to have such number loading tmx based maps?