     canvas.width = numXTiles * tileSize.x
     canvas.height = numYTiles * tileSize.y
 
+    console.log 'Finish loading atlasses'
+
     for layer in currMapData.layers
       continue if layer.type isnt 'tilelayer'
       continue if layer.name is 'sound'

      @imgLoadCount++
      if @imgLoadCount == currMapData.tilesets.length
        @set 'fullyLoaded': true
    img.src = 'atlases/' + tileset.image.replace /^.*[\\\/]/, ''

    ts =

    @set 'tileSize':tileSize
    @set 'pixelSize':pixelSize

    console.log 'Start loading atlasses'

    tilesets = for tileset in currMapData.tilesets
      @createTileSet tileset

