itsapi / pycraft

A Minecraft-inspired game for the terminal
GNU General Public License v2.0
197 stars 21 forks source link

Slice Indexing within Chunk Files #66

Closed olls closed 8 years ago

olls commented 8 years ago

One limitation of the chunk files are that each line of the file has a variable length, because the slice index can have any number of digits. If we make the slice indexes within the save files relative to the chunk position, then we can pad the slice positions to a constant width. This would also remove the need for the SLICE_SEP.

olls commented 8 years ago

Or we could get rid of the position entirely and just use the line number

olls commented 8 years ago

93c20acce5a87feaa5477b642f81db7ed499d282