| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| In article <bec509$7re$1@wolfberry.srv.cs.cmu.edu>, Simon H. <sheath@mail.com> wrote: >Okay. I'm building a text-adventure engine in Ocaml, and basically, I >want certain features to be scriptable. Like, the game-writer can >write a function to trigger an event when certain criteria are met. >This, of course, means that it has to be able to load and /evaluate/ >text files, returning an Ocaml function. Of course I could write my >own interpreter and mini-scripting language, but that seems a little >like overkill since it's gonna have a total of maybe two dozen >functions. I've implemented a version of Lua for Objective Caml. The implementation is called Lua-ML. You can read a paper about it at http://www.eecs.harvard.edu/~nr/pubs...-abstract.html You can get the code from http://www.cminusminus.org/code.html Lua is very popular in the gaming industry; there is lots of info at www.lua.org. -- Norman Ramsey http://www.eecs.harvard.edu/~nr |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.