The Angler (theangler) wrote in if_developer,
The Angler

tcl/tk toy text if engine

I'm no high power programmer, but I have been using Tcl/Tk to build little custom apps for the last ten years. So naturally I decided to poke around to see if I could find an IF engine written in Tcl. Interestingly enough someone has done it. It's only a toy engine, but it works on my computer. Larry Smith wrote a text adventure game engine and posted it to comp.lang.tcl (not sure when). The full source code and a sample game can be found on the Tcler's wiki:

The toy engine doesn't use Tk at all. I have a pretty good idea how to wrap the whole thing in a Tk GUI adding some bells and whistles for the reader/player. Also, this could be expanded to provide a model IDE for games written for the toy engine. Build a GUI for world building so the user could draw maps and insert objects graphically. Tk could be made to do such things with a little effort.

What bothers me about playing around with this toy engine is that the games themselves would be written in Tcl. It would be nice for the engine to parser Inform or TADS files and act as a sort of compile-less interpreter.
  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.