An experiment building a Roguelike with libtcod and Python
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 ``` |
||
---|---|---|
.vscode | ||
fonts | ||
roguebasin | ||
.gitignore | ||
.pylintrc | ||
01_fixed_size_console.py | ||
02_dynamically_sized_console.py | ||
bsp_visualizer.py | ||
logging_config.json | ||
Makefile | ||
README.md | ||
requirements.txt | ||
tcod.code-workspace |
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.