Skip to main content

A Python cffi port of libtcod.

Project description

About

This is a Python CFFI port of libtcod, this is an offshoot of the python-tdl project and has been made into it’s own package. Both projects are still developed together, and this module provides functions specifically to be used by python-tdl.

This library is hosted on GitHub: https://github.com/HexDecimal/libtcod-cffi

Any issues you have with this module can be reported at the GitHub issue tracker: https://github.com/HexDecimal/libtcod-cffi/issues

python-tdl is a port of libtcod made to be “Pythonic”, you can find it here: https://github.com/HexDecimal/python-tdl

And libtcod is here: http://roguecentral.org/doryen/libtcod/

Installation

The latest Windows installer can be found on PyPI: https://pypi.python.org/pypi/libtcod-cffi

If it’s available you can use pip instead by running the command:

pip install libtcod-cffi

This module can also be manually installed by going into the “setup.py” directory and running the command:

python setup.py install

This will require setuptools which you can find here: https://pypi.python.org/pypi/setuptools It also requires that your Python installation is set up to compile binaries.

Usage

This module was designed to be backwards compatible with the libtcod.py script that was distributed with libtcod. If you had code that runs on the original module you can use this library as a drop-in replacement like this:

import tcod as libtcod

Guides and Tutorials for the original library should also work with this one. When possible, using PyPy will give the best performance, and is highly reccomended.

Requirements

License

libtcod-cffi is distributed under the Simplified 2-clause FreeBSD license. Read LICENSE.txt, and the tcod/lib/README’s for more details.

Changelog

0.2.0
  • The library is now backwards compatible with the original libtcod.py module. Everything except libtcod’s cfg parser is supported.

0.1.0
  • First version released

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libtcod-cffi-0.2.0b.zip (1.7 MB view hashes)

Uploaded Source

Built Distributions

libtcod_cffi-0.2.0-cp34-none-win32.whl (1.6 MB view hashes)

Uploaded CPython 3.4 Windows x86

libtcod_cffi-0.2.0-cp33-none-win32.whl (1.6 MB view hashes)

Uploaded CPython 3.3 Windows x86

libtcod_cffi-0.2.0-cp32-none-win32.whl (1.6 MB view hashes)

Uploaded CPython 3.2 Windows x86

libtcod_cffi-0.2.0-cp27-none-win32.whl (1.6 MB view hashes)

Uploaded CPython 2.7 Windows x86

libtcod-cffi-0.2.0.win32-py3.4.exe (1.8 MB view hashes)

Uploaded Source

libtcod-cffi-0.2.0.win32-py3.3.exe (1.8 MB view hashes)

Uploaded Source

libtcod-cffi-0.2.0.win32-py3.2.exe (1.8 MB view hashes)

Uploaded Source

libtcod-cffi-0.2.0.win32-py2.7.exe (1.8 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page