curioustorvald / Terrarum

Modular game engine for a side-scrolling tilemap platformer, and a game that runs on top of it
Other
12 stars 0 forks source link

Chunked World Savegame Format for Fast Autosaving #45

Closed curioustorvald closed 3 years ago

curioustorvald commented 3 years ago

Since 0..0xFFFFFFFF is occupied, we should use different address space, e.g. 0x0000_WWWW_LLCC_CCCC, and just occupy larger address space because why not? (note: world index starts from 1)

0x0000_0000_0000_WWWW holds World Meta information.

curioustorvald commented 3 years ago

Seems working, only thing left to do is actually implementing an autosave and see if it's actually significantly faster than saving the entire world.

curioustorvald commented 3 years ago

Chunks should be stored vertically from top-left, just like the worldgen