About

This is a Python cffi port of libtcod.

This library is hosted on GitHub.

Any issues you have with this module can be reported at the GitHub issue tracker.

Usage

This module was designed to be backward compatible with the original libtcodpy module distributed with libtcod. If you had code that runs on libtcodpy then you can use this library as a drop-in replacement. This installs a libtcodpy module so you’ll only need to delete the libtcodpy/ folder that’s usually bundled in an older libtcodpy project.

Guides and Tutorials for libtcodpy should work with the tcod module.

The latest documentation can be found here: https://python-tcod.readthedocs.io/en/latest/

Installation

Detailed installation instructions are here: https://python-tcod.readthedocs.io/en/latest/installation.html

For the most part it’s just:

pip3 install tcod

Requirements

  • Python 3.5+
  • Windows, Linux, or MacOS X 10.9+.
  • On Windows, requires the Visual C++ runtime 2015 or later.
  • On Linux, requires libsdl2 (2.0.5+) and libomp5 to run.

License

python-tcod is distributed under the Simplified 2-clause FreeBSD license.