Archived

This topic is now archived and is closed to further replies.

masonium

Scripting Engine

Recommended Posts

abstractworlds    194
Your application would provide the objects/functions to control camera movement. Your application would then expose these objects/functions to the scripting engine. The code running in the scripting engine would then call the exposed objects/functions.

Share this post


Link to post
Share on other sites
peterw    122
I like the Zend scripting engine (as in PHP), as it has similar syntax to C and it is quite easy to add to your program.

Peter Windridge
http://www.incomplete.co.uk/
.. just started DirectX and general game programming so please excuse stupid questions.

Share this post


Link to post
Share on other sites
LilBudyWizer    491
You can either be an expert in building a high quality scripting engine or you can be an expert in using scripting engines to significantly enhance an application. You can''t do both. Whatever effort you put into writing a scripting engine would be better spent learning to use an existing scripting engine assuming your goal is the application it is being used in. If your goal is to be an expert in building scripting engines then you are going to have to build a lot of scripting engines and that isn''t going to leave much time for actually building many applications. Just from a practical perspective you wouldn''t generally wouldn''t be quite that narrow in focus. You would also develop a good deal of expertise in existing scripting engines and how to use them effectively in a wide variety of applications. You might even specialize in how to use them in games specifically.

If that is your interest then you need to buy a few books on compiler and interpreter design and construction. You also need to track down information on existing scripting engines, learn the languages, how to embed them and try a few applications to you can figure out the practical issues involved. Most people don''t want to do that. Rather you just pick a scripting engine like Python, figure out how to use it for the narrow need you have and the main focus being on the application. Rather than a little about applications and a lot about scripting you go for alot about applications and a little about scripting, i.e. the focus on moving the camera using a script rather than building a scripting engine capable of moving the camera.

Share this post


Link to post
Share on other sites