Hello!
I am working on a game using an Array as the "map" of sorts. The Array stores data for each "sector" (xy position) if it's been visited, or generates a procedural "room" at that co-ordinate if it has not been visited before.
I'm trying to figure out an efficient way to visually represent this array as a map. At present I am creating 10,000 sprites and setting each sprite's frame to represent the visited/unvisited/currently at state of that position in the array. This is wildly inefficient and I am having a bit of trouble thinking of a better way to visually represent the array.
I thought about using a Tilemap. Would that be more efficient when it comes to load times? Right now the game hitches up when I hit the map button, for about half a second, then loads the sprites.
I'd love suggestions if anyone has them!
Thanks!