An experiment building a Roguelike with libtcod and Python
Find a file
Eryn Wells da3d30872b Add logging action handling in a tree-like fashion
These logs are available in the actions.tree logger. They'll print a helpful
list of actions and their results in a tree-like way.

For example:

```
2022-05-12 08:57:57 actions.tree: Processing Hero Actions
2022-05-12 08:57:57 actions.tree: |-> @[(x:4, y:6)][30/30]
2022-05-12 08:57:57 actions.tree: |   |-> BumpAction toward (δx:-1, δy:1) by @[(x:4, y:6)][30/30] => success=False done=False alternate=WalkAction[@]
2022-05-12 08:57:57 actions.tree: |   `-> WalkAction toward (δx:-1, δy:1) by @[(x:3, y:7)][30/30] => success=True done=True alternate=None
2022-05-12 08:57:57 actions.tree: Processing Entity Actions
2022-05-12 08:57:57 actions.tree: |-> Orc with 10/10 hp at (x:4, y:5)
2022-05-12 08:57:57 actions.tree: |   |-> BumpAction toward (δx:-1, δy:1) by Orc with 10/10 hp at (x:4, y:5) => success=False done=False alternate=WalkAction[o]
2022-05-12 08:57:57 actions.tree: |   `-> WalkAction toward (δx:-1, δy:1) by Orc with 10/10 hp at (x:3, y:6) => success=True done=True alternate=None
2022-05-12 08:57:57 actions.tree: |-> Orc with 10/10 hp at (x:5, y:5)
2022-05-12 08:57:57 actions.tree: |   |-> BumpAction toward (δx:-1, δy:1) by Orc with 10/10 hp at (x:5, y:5) => success=False done=False alternate=WalkAction[o]
2022-05-12 08:57:57 actions.tree: |   `-> WalkAction toward (δx:-1, δy:1) by Orc with 10/10 hp at (x:4, y:6) => success=True done=True alternate=None
```
2022-05-12 08:56:15 -07:00
.vscode Enable linting 2022-05-07 08:51:55 -07:00
fonts Add terminal 16x16 font and move font PNGs to fonts/ 2022-04-26 19:06:49 -07:00
roguebasin Add logging action handling in a tree-like fashion 2022-05-12 08:56:15 -07:00
.gitignore Initial commit 2022-05-03 07:15:41 -07:00
.pylintrc Allow 'hp' as a valid variable name 2022-05-11 07:50:35 -07:00
01_fixed_size_console.py Use the terminal16x16 font for the 01 script 2022-04-26 20:36:33 -07:00
02_dynamically_sized_console.py Add the two scripts from the libtcod docs. These are mostly useful basic functionality checks. 2022-04-26 19:00:22 -07:00
bsp_visualizer.py A little script to visualize how BSP works; emits a DOT graph 2022-05-03 19:05:53 -07:00
logging_config.json Update the logging config 2022-05-12 08:46:59 -07: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 Basic Makefile and requirements.txt 2022-04-26 18:58:03 -07:00
tcod.code-workspace Add a VSCode workspace 2022-04-26 19:50:40 -07: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.