libtcod

Posts related to the Doryen library.
2011
11
Jan

Libtcod Cookbook

If you are a libtcod user, you've probably heard about libtcod cookbook (link not provided intentionally). Well, it seems that just as this site had to be rescued from 110mb servers, the cookbook will be forced to share the same fate.

2010
21
Dec

Chain it!

In my previous post, I mentioned that Umbra's head revision now requires libtcod's revision 522 or later. Now, what I didn't mention was why. So, here's the reason.

As you already know, Umbra relies on libtcod's parser to load its main configuration (among other things). The configuration variables are registered in the parser so that it knows what to look for. OK, it's nothing new. Just look at the code. Here's what it used to look like:

2010
7
Nov

Error logging in Umbra

Following the error logging utility release, here's a complementary post regarding the new log in Umbra. About three hours ago, I finished writing and testing the old log's successor, the UmbraLog class. It has all the features of its predecessor, and more. The logging is now done with several different methods instead of a single one - there's one for each message level, ranging from informative messages to fatal errors.

2010
25
Oct

TCODRandom changes, dice placeholder

Yesterday night I had a chance to work on libtcod a bit. TCODRandom is now a completely different toolkit. Instead of typing the annoyingly long function names, you can now just set your preferred distribution and just specify the type you wish to obtain. In case of C++ it's even easier, since you can use the simplified API, which includes a single function name: "get" :). If you don't set the distribution at all, it will default to linear - which is the most commonly used anyway. If you use the fancy names that take a-screen-and-a-half, you'll want to update.

2010
21
Oct

TCODNoise status update

Alright, following Jice's vote to get rid of the old TCODNoise API completely, I tweaked the new one to support everything a developer might need and made the old functions completely unavailable. Now the API looks like this:

2010
21
Oct

TCODNoise API simplification

I have just simplified the noise API in libtcod. The old API is still available, mainly because it's used internally by the new one, but we might as well decide to junk it completely and put everything in the simplified one. Thus, I think it's safe to say that the old noise geters are now deprecated.

In the new version, the noise object is assigned a default noise type upon creation (currently simplex). It can be changed later using this function: