Wrapper of the libtcod library for the Nim language.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
docs
samples151
samples170
src151
src170
LIBTCOD-CREDITS.txt
LIBTCOD-LICENSE.txt
LICENSE
README.md
libtcod-CHANGELOG.txt
libtcod.cfg
libtcod.nim
libtcod_nim.nimble
terminal.png

README.md

libtcod_nim 1.5.1/1.7.0 v0.99

libtcod_nim is a wrapper of the libtcod library for the Nim language.

Libtcod, a.k.a. “The Doryen Library”, is a free, fast, portable and uncomplicated API for roguelike developers providing an advanced true color console, input, and lots of other utilities frequently used in roguelikes.

You need to have dynamic library of libtcod installed:

  • libtcod 1.5.1:
    • libtcod.so.1.5.1 on Linux
    • libtcod-mingw.dll or libtcod-mingw-debug.dll on Windows.
  • libtcod 1.7.0:
    • libtcod.so or libtcod.so.0.0.0 on Linux;
    • libtcod.dll on Windows.

Also you may need SDL, OpenGL or GLSL dynamic libraries installed, depending on used renderer.

NOTE: project in beta-phase and requires heavy testing.

Compilation

The default complilation option is libtcod 1.7.0 (src170 directory).

To use legacy libtcod 1.5.1 (src151 directory), use --define:tcod151 key in your compile command.


CHANGELOG:

v0.99

  • added libtcod 1.7.0 wrapper
  • bugfixes for both 1.5.1 and 1.7.0 wrappers

v0.98.1

  • adaptation for Nim v0.18.1 and newer (strings can't be nil anymore)

v0.98

  • adaptation for new versions of Nim
  • more type-related fixes

v0.97

  • adaptation for Nim 0.10.2
  • fixed data types for correct work on 64-bit systems
  • WideCString fix

v0.96

  • fixed unicode output procedures
  • fixed some errata
  • adaptation for Nimrod 0.9.2

v0.95

  • total rewrite of parser module
  • added parser_get_list_<type>_property(parser, name): seq[<type>] functions
  • completed PList removal
  • tons of fixes

v0.90

  • most features implemented
  • ported samples
  • started PList removal
  • added floatArrayToPtr template for noise procedures