Temple of The Roguelike Forums

Development => Programming => Topic started by: Xecutor on March 30, 2010, 11:00:15 AM

Title: libtcod+lua
Post by: Xecutor on March 30, 2010, 11:00:15 AM
Anyone interested in libtcod enabled lua scripting host?
i.e. application that can run lua scripts and have built-in support of libtcod.
I even have 'walking @' with fov demo in lua :)

It's completely standalone (beside libtdoc and SDL runtime).
It's probably good for prototyping... if you know lua :)
Title: Re: libtcod+lua
Post by: ywgdana on March 30, 2010, 12:31:56 PM
Anyone interested in libtcod enabled lua scripting host?
i.e. application that can run lua scripts and have built-in support of libtcod.
I even have 'walking @' with fov demo in lua :)

It's completely standalone (beside libtdoc and SDL runtime).
It's probably good for prototyping... if you know lua :)


While I don't know lua that well, I'd bet it was fast enough to run as a game itself, since libtcod would be doing a lot of the heavy lifting in terms field-of-view and such.
Title: Re: libtcod+lua
Post by: stu on March 30, 2010, 10:38:15 PM
If it were me, I'd write the bindings as a separate package and create a combined interpreter as an example. much more useful that way.
Title: Re: libtcod+lua
Post by: Xecutor on March 31, 2010, 05:31:49 AM
It is separate package.
But lua can't just import external bundle.
You need to import it from your program and register in lua.
I might add some more useful for rl development extensions.
Ultimately I want to make kind of 'roguelike builder'.
Tool where you can design your classes, fill data, draw vaults and portions of maps.
And play :)
Title: Re: libtcod+lua
Post by: stu on April 01, 2010, 01:26:35 AM
I didnt mean package to load into lua, I meant write the c/c++ files that bind as a separate setup, so anyone can drop it in their existing lua/tcod game.