map: implement seeded generation; allow passing custom seed #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "notashelf/push-svxosluqnsnp"
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?
Adds support for seeded runs, allowing players to replay the exact same dungeon layout by specifying a seed via
--seed. The addition of the--seedflag also means I had to implement basic CLI parsing but I think it's simple and suitable for now. When a seed is not provided, we "fall back" ttime(NULL)to achieve random seeding. This is backed byGameState'srun_seed. Based on the seed, the floor generation is entirely deterministic.Signed-off-by: NotAShelf raf@notashelf.dev
Change-Id: I742b7e59c7ca872539d4ebfe3a03b44f6a6a6964