Learning Game AI Programming with Lua

Learning Game AI Programming with Lua


Leverage the ability of Lua programming to create online game AI that makes a speciality of movement, animation, and tactics

About This Book

  • Focus on programming online game AI instead of dealing with low-level source management
  • Bind Lua to construct a script-based video game AI utilizing a C++ backend that offers hooks for pix, physics, and source handling
  • A tutorial-based method the place AI functionalities are layered piece by means of piece to create absolutely practical AI

Who This ebook Is For

If you're a online game developer or a basic programmer who needs to target programming platforms and strategies to construct your video game AI with no growing low-level interfaces in a online game engine, then this booklet is for you.

Knowledge of C++ will turn out to be useful to debug the whole lot of the AI sandbox and extend at the positive aspects current in the e-book, however it isn't really required.

What you'll Learn

  • Create an animation nation desktop to force AI animations inside Lua
  • Build and locate paths on navigation meshes
  • Write and debug Lua scripts inside of a full-scale Lua IDE
  • Develop selection good judgment with habit bushes, country machines, and choice bushes to construct modular, reusable AI
  • Manage brief- and long term wisdom illustration with blackboard information structures
  • Add sensory conception to offer AIs the facility to work out and hear
  • Develop high-level strategies with a number of AIs in line with effect maps

In Detail

Game AI might be simply damaged up right into a variety of parts akin to choice making, animation dealing with, and strategies, however the stability and interplay among each one method moves a stability among solid AI and undesirable AI.

Beginning with an creation to the AI sandbox, every one new point of online game AI is brought, applied, after which increased upon. Going ahead, you are going to discover ways to make the most of open resource libraries comparable to Ogre3D, Bullet Physics, OpenSteer, Recast, Detour, and Lua to create an AI sandbox with a complete codebase to be had to extend and step through.

This is finished via a step by step strategy, from studying to maneuver uncomplicated shapes to completely animating your squaddies. by way of the top of the e-book, your AI should be capable of navigate, pathfind, deal with animation playback, speak, and understand their environment.

Show sample text content

Download sample