To prevent our character from traveling off the map, we must export the collision blocks we placed within tiled. Here we'll learn how to do exactly that, then parse the exported collision block data into a 2D array so we can create canvas rectangles off of it. Finally we'll learn how to stop our player from moving whenever we're about to collide with a block.
hello