Skip to Content
Lua游戏AI开发指南
book

Lua游戏AI开发指南

by Posts & Telecom Press, David Young
May 2024
Beginner to intermediate
327 pages
4h 38m
Chinese
Packt Publishing

Overview

利用Lua编程开发专注于动作、动画和战术的游戏AI

Key Features

  • 本书循序渐进,从学习移动一个简单物体开始,到实现一个带有完整动画的战士
  • 本书首先介绍AI沙箱,然后依次介绍、实现和扩展了游戏AI的各个新领域
  • 本书介绍一些开源库,如Ogre3D、Bullet物理引擎、OpenSteer、Recast、Detour以及Lua
  • 利用一个可以扩展和运行的完整代码库来创建AI沙箱。

Book Description

游戏AI可以很容易地拆分成决策制定、动画处理和战术等各种组件,但各个系统间的平衡和交互决定了良好的AI和糟糕的AI之间的区别。

本书首先介绍AI沙箱,然后依次介绍、实现和扩展了游戏AI的各个新领域。更进一步,读者还将学习使用一些开源库,如Ogre3D、Bullet物理引擎、OpenSteer、Recast、Detour以及Lua,并利用一个可以扩展和运行的完整代码库来创建AI沙箱。本书采用一种循序渐进的方法,从学习移动一个简单物体开始,到实现一个带有完整动画的战士。学习完本书,你的AI将能够导航、寻路、管理动画回放、彼此交流并能感知它所处的环境。

如果你是游戏开发者,或者是一位想专注于实现自己的游戏AI系统和技术,而又不想创建游戏引擎的底层接口的普通程序员,这本书正是为你量身打造的。C++语言知识对于调试整个AI沙箱和扩展本书提供的功能十分有用,但并非必需的。

What you will learn

  • 创建动画状态机以便在Lua代码中驱动AI动画;
  • 构建导航网格并在其中寻路;
  • 使用全功能的Lua IDE编写和调试Lua脚本;
  • 使用行为树、状态机和决策树开发决策逻辑,构建模块化、可重用的AI;
  • 使用黑板数据结构管理短期和长期的知识表示;
  • 添加感官知觉让AI能看能听;
  • 基于影响力地图开发多个AI的高级战术。

Who this book is for

游戏开发人员、编程爱好者

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Kafka权威指南(第2版)

Kafka权威指南(第2版)

Gwen Shapira, Todd Palino, Rajini Sivaram, Krit Petty
Python计算机视觉和自然语言处理

Python计算机视觉和自然语言处理

Posts & Telecom Press, Álvaro Morena Alberolaï, Gonzalo Molina Gallegoï, Unai Garay Maestreï
面向MapReduce的Hadoop优化

面向MapReduce的Hadoop优化

Posts & Telecom Press, Khaled Tannir

Publisher Resources

ISBN: 9781836205555