Skip to content

Prodcedurally generated galaxy, using a custom built PRNG algorithm with inexpensive runtimes and random results for consecutive seeds

Notifications You must be signed in to change notification settings

colonbrack3t/proceduralGalaxy

Repository files navigation

proceduralGalaxy

Prodcedurally generated galaxy, using a custom built PRNG algorithm with inexpensive runtimes and random results for consecutive seeds.

Open Generation.html in any browser. Use Arrow keys to move around the universe. Click on stars to view systems

I implemented a Lehmer Algorithm to create random numbers that have random results for consecutive seeds. Simply using the JS random algorithm would create very ordered results. By using seeds, the application can generate any place in the whole galaxy, given coordinates, with consistency (wont ever change whenever you load the same area).

Focus was on light work load for the computer, so things are only generated if theyre needed (e.g. planets are not generated until displayed)

Screenshot 2022-09-06 at 10 44 55

About

Prodcedurally generated galaxy, using a custom built PRNG algorithm with inexpensive runtimes and random results for consecutive seeds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published