Using Python to script a game?
tjreedy at udel.edu
Sat Jun 15 05:54:23 CEST 2002
"Ben Blonder" <ben at sourcecod.com> wrote in message
news:cdc2589b.0206141718.7dc2ae13 at posting.google.com...
> I'm writing a 3D naval tactics in C++ for the Mac. I'm planning on
> having all the object behaviors, movements, and AI controlled
> a scripting layer. The scripts would be text files the game would
> parse and then carry out actions. All the scripts would be read at
> runtime, not compile time, so they'd all have to be interpreted.
> In the scripting system, there would have to be some way to create a
> new foo object, define x, and then call print() while the user was
> Can I use Python to accomplish this, and if so, can you point me to
> some tutorials on integratring Python with my existing code?
Blade of Darkness, a commercial real-time 3d medieval action game, is
scripted in Python. The demo is probably still available (check
google); it comes with readable .py files.
Terry J. Reedy
More information about the Python-list