Commit Graph

17 Commits (master)

Author SHA1 Message Date
Alex Bethel 98cea211fc Nuke hallway tile type 2022-03-24 21:28:23 -06:00
Alex Bethel aa7361df6b Work on restructuring world generator API
We need to be able to spawn entities from the generator function, both
as level props and as enemies; the previous API makes this impossible,
so I'm working on restructuring it. Not too happy with it yet, still
needs more work.
2022-01-15 14:49:15 -06:00
Alex Bethel 6b6a6720ce Rename game.rs -> level.rs 2022-01-10 19:33:45 -06:00
Alex Bethel 0ec5fbbe8c Up stairs & down stairs 2022-01-06 16:57:20 -06:00
Alex Bethel b5ddf09bb9 Use A* rather than Dijkstra
The level generation algorithm now runs somewhere around 100x faster.
2022-01-01 18:19:55 -06:00
Alex Bethel 955a1cd4b2 Add map generator margin 2022-01-01 15:04:43 -06:00
Alex Bethel aa0b600ec8 Move consts to top of file 2022-01-01 15:02:10 -06:00
Alex Bethel b62df4c79d Formatting 2022-01-01 14:57:37 -06:00
Alex Bethel 209c56ec50 Less biased hallway generation 2022-01-01 14:53:37 -06:00
Alex Bethel e720189f3e Stop rooms from generating too close to each other 2021-12-28 21:27:17 -06:00
Alex Bethel 57968fb59c Add paths between rooms 2021-12-28 20:12:45 -06:00
Alex Bethel e8030b9e07 gen_room_bounds -> associated function 2021-12-19 11:52:16 -06:00
Alex Bethel 515fa65e61 Room generation strategy description 2021-12-19 11:50:16 -06:00
Alex Bethel ec4b06c721 Prevent rooms from generating right next to each other 2021-12-19 11:40:26 -06:00
Alex Bethel 626093e694 Small cleanups 2021-12-19 11:33:39 -06:00
Alex Bethel 1c22a1be05 Whoops, that was backwards 2021-12-19 11:33:07 -06:00
Alex Bethel 4eded9446b Room generation
I'm too tired to write good code today, but this sorta works I guess
2021-12-18 21:03:00 -06:00