O'Reilly logo

Core Techniques and Algorithms in Game Programming by Daniel Sánchez-Crespo Dalmau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required