Why script?

You might ask yourself, "why should I use any scripting language if I can implement everything I need in C++"? There are a number of benefits to providing a scripting environment to your games. Most modern games really consist of two parts. One is the main game engine that implements the core of the game (data structures, processing algorithms, and the rendering layer) and exposes an API to the other component, which provides details, behavior patterns, and action flows for the game. This other component is sometimes written in a scripting language. The main benefit of this is that story designers can work independently from the engine developers, and they don't have to rebuild the whole game just to modify some of its parameters ...

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.