Commit graph

13 commits

Author SHA1 Message Date
7c5c3c57ec Fill the map with Empty tiles instead of Wall tiles 2022-05-03 19:03:31 -07:00
09bdf8a7a6 Place NPCs randomly in a generated room 2022-05-03 19:00:45 -07:00
58e732c923 Clean up and document room rect generation 2022-05-03 18:25:30 -07:00
7ba33cc6eb Fix this type annotation 2022-05-03 18:24:14 -07:00
50d6550e17 Parameterize maximum room size; make minimum_room_size the actual floor size, not counting walls 2022-05-03 18:23:48 -07:00
010c67fd78 Attempt #1 to dig tunnels -- it does not work 2022-05-01 18:03:47 -07:00
f89ff42f02 Clean up logging, and refine some bits of the map generator algorithm 2022-05-01 17:41:07 -07:00
ed312e985d Add a __repr__ for map.RectangularRoom 2022-05-01 17:34:57 -07:00
8b9897f0cc Convert the geometry types to frozen dataclasses 2022-05-01 17:32:48 -07:00
a072ad507e Move map generation into a new MapGenerator subclass; add RoomsAndCorridorsGenerator to uses BSP 2022-05-01 10:46:30 -07:00
5ce26e310b Move the action perform logic to Action.perform() on each Action subclass
Rename Object to Entity to avoid name clashes with Python.object
2022-05-01 09:29:30 -07:00
5302b5cf5e Redo tiles to use numpy datatypes
This gives us some nice optimizations when splatting the map to the console.
2022-05-01 00:09:12 -07:00
dc78669abf Add a map module with a Map class 2022-04-30 23:29:52 -07:00