This is the code repository for Unity 2018 Artificial Intelligence Cookbook - Second Edition, published by Packt.
Over 90 recipes to build and customize AI entities for your games with Unity
Interactive and engaging games come with intelligent enemies, and this intellectual behavior is combined with a variety of techniques collectively referred to as Artificial Intelligence. Exploring Unity's API, or its built-in features, allows limitless possibilities when it comes to creating your game's worlds and characters. This cookbook covers both essential and niche techniques to help you take your AI programming to the next level.
This book covers the following exciting features:
- Create intelligent pathfinding agents with popular AI techniques such as A* and A* mbush
- Implement different algorithms for adding coordination between agents and tactical algorithms for different purposes
- Simulate senses so agents can make better decisions, taking account of the environment
- Explore different algorithms for creating decision-making agents that go beyond simple behaviors and movement
- Create coordination between agents and orchestrate tactics when dealing with a graph or terrain
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
public override void Awake()
{
base.Awake();
targetAgent = target.GetComponent<Agent>();
targetAux = target;
target = new GameObject();
}
Following is what you need for this book: The Unity 2018 Artificial Intelligence Cookbook is for you if you are eager to get more tools under your belt to solve AI- and gameplay-related problems. Basic knowledge of Unity and prior knowledge of C# is an advantage.
With the following software and hardware list you can run all code files present in the book (Chapter 1-10).
Chapter | Software required | OS required |
---|---|---|
1-10 | Unity 2018 | Windows and Mac OS X |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Jorge Palacios is a software and game developer with a BS in computer science and eight years of professional experience. He's been developing games for the last five years in different roles, from tool developer to lead programmer. Mainly focused on artificial intelligence and gameplay programming, he is currently working with Unity and HTML5. He's also a game-programming instructor, speaker, and game-jam organizer.
Click here if you have any feedback or suggestions.