diff --git a/design.md b/design/design.md similarity index 100% rename from design.md rename to design/design.md diff --git a/ideas.md b/design/ideas.md similarity index 100% rename from ideas.md rename to design/ideas.md diff --git a/design/save.md b/design/save.md new file mode 100644 index 0000000..cb0b808 --- /dev/null +++ b/design/save.md @@ -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.