I'm making games using Alegra / C ++ The game is almost complete and now, I create a map editor Want to There are many classes in the game, and their number will vary depending on the number of items required by the map. I was thinking of creating a separate structure to capture level data and store it as a map. The problem is that the size varies according to the map and I have to use pointers to adjust the objects based on the numbers. What is the best way to store and retrieve such data?
I was thinking that an example of the structure -
struct level {int soldierCount; Military ** soldier; Int taskCount; Int * taskPercentage; Int * taskBitmapX; Int * taskBitmAPY; }; Therefore, what you want to do is serialization.
I suggest already using an existing library for this. Check out this thread:
Comments
Post a Comment