when you have each tile as an image you need a data structure in a text file that you then load and which tells you which tile in the grid has which image. And where the player can walk and where he can't. When you load the text file, you store the information from that in a 2D grid like a chess board. See tutorial on two dimensional arrays to learn more:
Answers
Same as this on the picture
https://processing.org/reference/get_.html
Yes but how create a list of array ?
when you have each tile as an image you need a data structure in a text file that you then load and which tells you which tile in the grid has which image. And where the player can walk and where he can't. When you load the text file, you store the information from that in a 2D grid like a chess board. See tutorial on two dimensional arrays to learn more:
https://www.processing.org/tutorials/
Possible Tile elements
In pacman e.g. you have wall, path, food.
In the image above it's a little more complicate, since you have
When Game Maker Studio can save this map as a textual map like 00210021003 you want to decode this, when you have a documentation about it.
My sketch
for a general map loader to use see:
https://forum.processing.org/two/discussion/26345/best-way-to-make-world-borders-for-a-game#latest
Best, Chrisir ;-)