Overview
complex GUIs and artificial intelligence. If you're a developer just starting to use Lua, or you're considering using it, Game Development with Lua will teach you everything you need to know. And if you're new to scripting languages altogether, this book will also teach you how they can be used in game development effectively. Written by practicing Lua game developers, the book teaches how to use Lua for commercial game development. It begins with a brief history of Lua and explains how to incorporate Lua into a C++ project. It details the key features and advantages of Lua and then takes you through the development of a "rapid prototype" game called Take Away. This game provides the context with which to explore the foundational C++ approaches and the Lua scripting approaches to saving and loading game data, building a modular and flexible GUI system, managing a game's real-time events through Lua scripts, and using Lua to define and control game AI. There are also several smaller games along with a full technology base, so even non-programmers can look under the hood to see what makes a game tick. If you're looking for an efficient, affordable, and easy-to-learn language for your games, Lua is the right choice and this book will teach you how to use it effectively.
Synopsis
Written for game developers and advanced hobbyists, this guide introduces the Lua scripting language and shows how to link the Lua API into a C++ application to create LuaGlue functions that allow Lua to extend C++ functionality. An action-shooter arcade game illustrates the foundational C++ and Lua scripting approaches to saving and loading game data, building a modular GUI system, and managing a game's real-time events. The CD-ROM contains the Lua 5.0 distribution, Microsoft's DirectX 9 SDK, and a command line Lua interpreter. Annotation ©2005 Book News, Inc., Portland, OR