i have now tried for about 6h to save chunks to file and then reload them back to game when needed
give any tips that might help me?
a good saving library like simple-json / xml
and how to approach this problem
basically what am trying to do is when all chunks has been generated
it will save them to one file
then ing remove chunks completely so they dont exist
and when player starts to go close to the location off those chunks they load back in using the file with information!
ChunkManager --> generates chunks and saves em to a file
Chunk --> generates blocks with properties
and what i want chunk file to do
ChunkFile --> save chunks and there inforamtion on the blocks and the chunks location in the Chunk[][] array
save the blocks in etch chunk and there location in the chunk and what type off block it is
you might have an idea now but just in case
PINK = Player Camera
BLUE = Loaded Chunks Player Camera Sees Chunks
YELLOW’ISH = Chunks Ready To Be Loaded, by taking info about it in file
RED = Not Even In Game, its just in a File And Ready To be Added To Game