An experiment building a Roguelike with libtcod and Python
Find a file
Eryn Wells 4002b64640 Attack!!!
Refactor MovePlayerAction into a few different Action subclasses. Move direction
to a parent MoveAction, and create three new subclasses of MoveAction:

    - BumpAction: perform the test that an action can be performed in the given direction
    - WalkAction, take a step in the given direction
    - MeleeAction, attack another Entity in the given direction

Add an ActionResult class that communicates the result of performing an Action.

    - ActionResult.succeeded indicates whether the action succeeded.
    - ActionResult.done indicates if the action is fully complete or requires followup.
    - ActionResult.alternate specifies the follow-up action to perform.

Convert all the key handling actions to BumpActions.

In the Engine's event handler method, loop until an action is completed,
performing specified alternate actions until the result object indicates the
action is done.
2022-05-07 11:16:17 -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 Attack!!! 2022-05-07 11:16:17 -07:00
.gitignore Initial commit 2022-05-03 07:15:41 -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
Makefile Basic Makefile and requirements.txt 2022-04-26 18:58:03 -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.