Overv / WebCraft

Minecraft clone written in Javascript.
zlib License
387 stars 186 forks source link

Custom singleplayer world #15

Closed DerpyScripts closed 6 years ago

DerpyScripts commented 7 years ago

Is it possible to have a pre-made world load instead of generating a new world while in singleplayer? If so, then how?

Overv commented 7 years ago

You could serialize the blocks, sx, sy and sz variables as JSON after creating your pre-made world and then load them in the World constructor from that JSON file.