Skip to main content
deleted 88 characters in body; edited title
Link
user1430
user1430

How can I readconvert a Tiled level array asto a 2D array?

deleted 88 characters in body; edited title
Source Link
user1430
user1430

tiled map editor 2d How can I read a Tiled level array as a 2D array?

I'm learning game dev. In javascript and forFor the code that I havein my game, I needwant a 2d2D array which represents the map(first dimension y and second the x coordiantes).

Now I created aan actual map with Tiled but it returns onlyproduces a 1d1D array. Is there any way to convert it into my desired format wothout manually adding brackets and commas after each line?

tiled map editor 2d array

I'm learning game dev. In javascript and for the code that I have I need a 2d array which represents the map(first dimension y and second the x coordiantes)

Now I created a map with Tiled but it returns only a 1d array. Is there any way to convert it into my desired format wothout manually adding brackets and commas after each line?

How can I read a Tiled level array as a 2D array?

For the code in my game, I want a 2D array which represents the map.

I created an actual map with Tiled but it produces a 1D array. Is there any way to convert it into my desired format wothout manually adding brackets and commas after each line?

Source Link

tiled map editor 2d array

I'm learning game dev. In javascript and for the code that I have I need a 2d array which represents the map(first dimension y and second the x coordiantes)

Now I created a map with Tiled but it returns only a 1d array. Is there any way to convert it into my desired format wothout manually adding brackets and commas after each line?