[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Wed, Apr 17, 2002 at 08:14:47AM +0200, Jorrit Tyberghein wrote:
> Dmitry Samoyloff wrote:
> > Hi!
> > I want to use some scripting language (like TCL or Perl) in my
> > 3D action game for a game logic and AI but I don't know yet how
> > to do that. I read some articles on this topic but there was no
> > deep technical description. Particularly I would like to know
> > how to:
> > 1) call scripts from my C++ game engine
> > 2) call the engine's functions from the scripts
> > Any links and/or advices would be very appreciated!
> Have a look at SWIG (www.swig.org). It can automate the process
> of generating C++ vs scripting wrappers.
I looked at swig a couple of years ago when I was building a high performance
core for a game server which was going to use a huge bundle of existing
python code for game logic. It is quite a clever package, but I found
that the raw python API itself is quite nice to work with, and I
ended up with a much better solution by writing the interface code
myself from scratch.
Having now completed this project, I can highly recommend python as
a powerful embeddable scripting language with a nice clean easy to
use API. It is quite large though. If you want something smaller and lighter,
I understand lua is extremely simple.
- From: Dmitry Samoyloff <firstname.lastname@example.org>
- Re: Scripting
- From: Jorrit Tyberghein <Jorrit.Tyberghein@uz.kuleuven.ac.be>