Chapter 9. Scripting

 

“Life is like a B-picture script. It is that corny. If I had my life story offered to me to film, I'd turn it down.”

 
 --Kirk Douglas

KEY TOPICS

  • Building a Scripting Language

  • Embedded Languages

  • Socket-Based Scripting

  • In Closing

So far we have discussed how hard-coded AI systems can deal with many scenarios efficiently, from action to strategy and everything in between. Some games will work fine with small AI systems, whereas others will require tons of code to implement the AI feature set. However, as the AI grows in complexity, keeping it hard-coded will eventually become a problem. Hard-coded AIs are efficient, but are often limited in terms of flexibility. The internals of the AI are built into the game's source, so adding or ...

Get Core Techniques and Algorithms in Game Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.