Complete terrain generation code #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "terrain"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is pretty much the complete terrain generation code. There are still biome and feature scenes to be created and assigned. For now only the biome 'grassy' works.
The terrain pregenerates PREGENERATED_CHUNK_COUNT chunks, then every Globals.tick_terrain it generates chunks in advance of the player, so that there are always ADVANCE_CHUNK_COUNT chunks in front of the player.
These may need adjusting if the player speed increases in the future, for example with upgrades. I may or may not clean up the code in the future.
LGTM 👍