Hello GameDev community!
How many here have valuable experience with 2D tile maps?
I have a question for you that may be very valuable to any readers of this page, which will give you good opportunity to share your expertise.
The begin, I have what is called here and 'Action Screen,' which loads a matrix of what are called here 'Maps.' Each map is 100 * 100 tiles, which also contain objects (in this implementation).
The Action Screen works great, and allows a player to travel across any number of maps.
The challenge is getting it to save and load maps efficiently. Currently, maps are serialized and deserialized as needed, along with a vector of Tile objects within them.
Rendering and displaying are both very fast. The challenge currently lies in loading the maps from a directory (which takes a lot of time, due to the number of objects within them).
One solution I've considered is to serialize and deserialize tiles individually, which would work very well for loading, but horribly for saving new maps, which contain unique tiles. Also, that is an ungodly amount of individual files.
Is there anyone out there that might have what it takes to field this one, or some relevant resources?
Thanks in advance!