Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create proc_gen_chunk_load.py #336

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LyfeOnEdge
Copy link

A code sample to help users get started with proceedurally generated terrain / chunkloading in Ursina. More complex terrain can be achieved by using a more complicated functionin GameWithChunkloading.get_heightmap(). Supports both Perlin Noise and Open Simplex Noise. Has an optional argument to enable chunk saving/loading in addition to the default pure procgen.

options: -h, --help show this help message and exit -s SEED, --seed SEED Select terrain seed. No seed / a seed of zero results in a random seed. (Int) -d DIVISIONS, --divisions DIVISIONS Number of divisions per chunk edge. (Int) -r RENDERDISTANCE, --renderdistance RENDERDISTANCE Render distance radius in chunks. (Int) -t TERRAINSCALE, --terrainscale TERRAINSCALE Higher values yield rougher terrain. (Float) -y YSCALE, --yscale YSCALE Terrain Y amplification. (Float) -m MAPSCALE, --mapscale MAPSCALE Length of chunk edge. (Float) -n NUMGENERATORS, --numgenerators NUMGENERATORS Length of chunk edge. (Float) -l, --loadchunks Enable example chunk save/load system. -o, --opensimplex Set this flag to use Open Simplex Noise rather than Perlin Noise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant