More around design documents, add save design doc

This commit is contained in:
crumblingstatue 2023-04-08 23:41:56 +02:00
parent 06a0593b72
commit 7c3bfe373a
3 changed files with 13 additions and 0 deletions

13
design/save.md Normal file
View file

@ -0,0 +1,13 @@
Game has different worlds you can generate.
Each world has its own folder.
Each folder has:
- Player file (player.dat)
- Subfolder for regions (regions/)
Each region subfolder has:
r.x.y.dat files for each chunk, where x and y are the region coordinates.
# Regions
A region stores multiple chunks in a single file for more optimized storage.
Current plan is to store 8 chunks in a region, in other words, 1024*1024 blocks.
Around one million blocks, compressed with zstd compression.