An experiment building a Roguelike with libtcod and Python
Find a file
Eryn Wells dd8b0364e0 Break RoomGenerators into Rect and Room methods
A RoomGenerator is now made up of two "method" classes that do separate
things:

1. A RectMethod takes the size of the area to generate and creates an
   iterable stream of Rects to fill that area.
2. A RoomMethod takes a Rect and creates a room inside of it.

These two components are composable in interesting ways, and allow a
more data-driven approach to map generation, though I don't yet have the
ability to make this mechansim entirely data-driven.
2023-03-05 16:53:00 -08:00
.vscode Add pytest unit tests 2023-02-18 10:49:35 -08:00
erynrl Break RoomGenerators into Rect and Room methods 2023-03-05 16:53:00 -08:00
first_steps Move first steps scripts to their own directory 2022-05-12 09:02:53 -07:00
fonts Some messing around with fonts and BDF files from long ago 2023-02-08 08:36:44 -08:00
test Add a test for RectangularRoom.wall_points 2023-02-19 18:18:40 -08:00
.gitignore
.pep8 Add a pep8 code style configuration file 2023-02-08 08:34:46 -08:00
.pylintrc Tell the linter to allow pt as a variable name 2023-02-09 16:07:45 -08:00
bsp_visualizer.py A little script to visualize how BSP works; emits a DOT graph 2022-05-03 19:05:53 -07:00
ca.py Add CellularAtomataMapGenerator 2023-02-20 18:02:01 -08:00
going_rogue.code-workspace Ignore .venv directory in the VSCode workspace 2023-02-18 10:40:55 -08:00
logging_config.json Enable UI debug logging 2023-03-05 13:35:35 -08:00
Makefile Update the Makefile to use .venv as the virtual env directory 2022-05-08 08:54:54 -07:00
README.md Merge remote-tracking branch 'origin/main' 2022-05-03 07:17:39 -07:00
requirements.txt Add pytest unit tests 2023-02-18 10:49:35 -08:00

Going Rogue

An experiment building a Roguelike with libtcod and Python

libtcod is a library that provides a bunch of useful routines for building Roguelikes. There are C++ and Python interfaces.

There are Python docs.

I also found a "make a Roguelike with libtcod" tutorial on Rogue Basin.