going-rogue/erynrl
Eryn Wells 635aea5e3b Add cellular atomata to the map generator finally!
Use the new map generator mechanism to generate rooms via cellular
atomata. Create a new CellularAtomatonRoomMethod class that uses
the Cellular Atomton class to create a room. Add a FreefromRoom class
that draws a room based on an ndarray of tiles.

Along the way I discovered I have misunderstood how numpy arrays
organize rows and columns. The numpy array creation routines take an
'order' argument that specifies whether arrays should be in C order (row
major) or Fortran order (column major). Fortran order lets you index
arrays with a more natural [x, y] coordinate order, and that's what the
tutorials I've read have shown. So I've been using that. When I was
developing the Cellular Atomaton, I wrote some code that assumed row-
major order. I think I want to move everything to row-major / C-style,
but that will take a bit more time.
2023-03-05 18:40:02 -08:00
..
actions Add a bunch of doc strings and header comments to files 2023-02-15 08:25:40 -08:00
interface Fix up how Maps are rendered in MapWindows 2023-03-05 13:37:51 -08:00
map Add cellular atomata to the map generator finally! 2023-03-05 18:40:02 -08:00
__init__.py Move the roguebasin package to erynrl 2022-05-12 09:05:27 -07:00
__main__.py Specify map size of 80x24 2023-03-05 13:35:47 -08:00
ai.py Refactor Action into Action and ActionWithActor 2023-02-12 16:34:37 -08:00
components.py PEP8 formatter changes 2023-02-10 21:25:00 -08:00
configuration.py Add doc string for Configuration attributes 2023-03-05 10:49:02 -08:00
engine.py Break RoomGenerators into Rect and Room methods 2023-03-05 16:53:00 -08:00
events.py Implement viewport tracking for the MapWindow 2023-02-12 19:47:27 -08:00
geometry.py Geometry classes are no longer frozen 2023-03-05 16:53:34 -08:00
items.py A couple fixes in items.py 2023-02-18 22:57:37 -08:00
log.py Clean up log module documentation 2023-02-20 17:11:55 -08:00
messages.py Move all the interface stuff to interface.Interface 2023-02-11 01:21:52 -08:00
monsters.py Move the roguebasin package to erynrl 2022-05-12 09:05:27 -07:00
object.py Clean up the doc comment on Entity 2023-03-04 11:07:32 -08:00