Waridley / hack-and-slash

WIP Hack-and-slash game made with Bevy
European Union Public License 1.2
2 stars 0 forks source link

Seedable terrain #30

Closed Waridley closed 9 months ago

Waridley commented 9 months ago

Automatically generates random 24-byte hashes and computes the base-64 encoding of them. At some point I will enable entering seeds manually. This implementation can accept any UTF8 string and hash it to generate the 24-byte seed, while saving the original string along side it for sharing. I will need some way to detect the difference between auto-generated base-64 hashes and manually-entered strings. I could potentially just try to parse the string as a base-64 hash, falling back to hashing the string if it fails, but I'm considering prepending a special character like ~ to designate a randomly-generated hash.