Questions tagged [libtcod]

libtcod (also: The Doryen Library) is a library for advanced console output and API for developing roguelikes.

from the libtcod homepage:

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

libtcod offers bindings for a wide range of languages, including C, C++, C#, D, Common Lisp and Python. The source is available at BitBucket.

51 questions
0
votes
1 answer

Why libtcod samples_cpp run like this?

I had build libtocd dll in my machine (version 1.5.1), but when I run samples_cpp.cpp with a win32 console project. Some chaos font show as attached picture. Anyone who konws why this happend? Many thanks for your reply. I found that if I comment…
pow_xiao
  • 1
  • 2
0
votes
2 answers

C++: How To Use %i in Function?

I have a little question, is it possible to use %i in function? Here is what I need to do. I have a function callback: engine.gui->menu.addItem(Menu::AGILITY,"Agility (+1 defense)"); and i want to use it in this…
TheScriptan
  • 189
  • 1
  • 9
0
votes
2 answers

Python Roguelike: Background Issue

I'm following a tutorial on making a roguelike in python, and it's actually coming along pretty nice. However, I have come to a small graphical issue: for the player and enemies, they all have a black background on them, which I don't want. I've…
Jeremy Darrach
  • 273
  • 1
  • 6
  • 18
-1
votes
2 answers

List index out of range when it should be in range

I have this program trying to add up the number of grid spaces around it of a certain value, and it keep giving the error "IndexError: list out of range". I've tried setting it to start on column and row late and end one column and row early to the…
-1
votes
2 answers

crypto currency Api help (cryptsy,mintpal,coins-e,etc)

i am developing a bitcoins based site i want to convert bitcoin into alt coins and then send the altcoins automatically to the user given alt coin address, but when i try to implement it but i didn't find the appropriate api to implement it on my…
-5
votes
1 answer

Python 2.7 IndentationError

I am getting an IndentationError when trying to run my program in a Python Interpreter: line 127 global map ^ IndentationError: expected an indented block I am using python version 2.7 What's wrong with the following code?: def…
1 2 3
4