From 7c3bfe373aea7f55e327cc3a53105b40953c6139 Mon Sep 17 00:00:00 2001 From: crumblingstatue Date: Sat, 8 Apr 2023 23:41:56 +0200 Subject: [PATCH] More around design documents, add save design doc --- design.md => design/design.md | 0 ideas.md => design/ideas.md | 0 design/save.md | 13 +++++++++++++ 3 files changed, 13 insertions(+) rename design.md => design/design.md (100%) rename ideas.md => design/ideas.md (100%) create mode 100644 design/save.md 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.