Crates.io | planet_generator |
lib.rs | planet_generator |
version | 0.0.6-pre-alpha |
source | src |
created_at | 2022-11-05 22:08:52.066093 |
updated_at | 2024-06-09 13:28:06.520817 |
description | [WIP] Generates data for galaxies, sectors, solar systems, planets and their inhabitants (Check README for features list). |
homepage | |
repository | |
max_upload_size | |
id | 706161 |
size | 2,134,952 |
A Rust library that aims to generate galaxies, sectors, solar systems, planets with maps, and their inhabitants, along with tons of narrative elements and ideas.
The library is intended for use in game development to generate believable worlds for Roguelikes, 4X games, or any other project that sparks your imagination.
I've tried my best to use realistic formulas and up-to-date data when possible for generation. However, as I am not an astrophysicist myself, and my limited knowledge on the subject isn't sufficient to build something entirely accurate, I've compensated for my shortfalls by borrowing ideas from various other generators I have previously used and loved, mostly from RPGs. These include, but are not limited to: the RTT Complicated Star System Generator, Instant Universe, and generators from various editions of GURPS Traveller, Stars Without Number, Rogue Trader and Alternity.
An example of how to use this library can be found in this project, a simple Actix server that serves generated results. A web app that displays the generation results using the previous project is available here - please note that it is also a work in progress, and not all library features are available in the web app yet.
This is the current roadmap of the library:
I'd be happy to receive issues requesting new features or reporting bug fixes. Feel free to point out areas where the code could be improved, whether in terms of performance, readability, documentation, or adherence to best practices, and/or submit pull requests yourselves.
Licensed under MIT license.