Skip to content

Commit

Permalink
fix map loading order
Browse files Browse the repository at this point in the history
  • Loading branch information
victorqribeiro committed Mar 20, 2023
1 parent dd58ada commit f22d5ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ const load = async file => {
return
}
/*todo refactor createCanvasMap */
createCanvasMap()
const {intW, intH, gridWidth, gridHeight, nLayers, isometric, collision} = data
createCanvasMap(intW, intH, gridWidth, gridHeight, nLayers, isometric, collision)
map.load(data)
map.show(c)
// $('#layerSelector').innerHTML = createLayerSelector(map.nLayers, map.collision).innerHTML
Expand Down

0 comments on commit f22d5ae

Please sign in to comment.