Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Practical Game AI Programming

You're reading from  Practical Game AI Programming

Product type Book
Published in Jun 2017
Publisher Packt
ISBN-13 9781787122819
Pages 348 pages
Edition 1st Edition
Languages
Author (1):
Micael DaGraça Micael DaGraça
Profile icon Micael DaGraça

Utility-based functions


Now that we know how to calculate chance and use AFSMs, it's time to explore them a little more and make our characters look smart. This time, we'll use an AI character that is set to behave autonomously in a simulation game such as The Sims. This is a perfect environment to test artificial intelligence because it mimics real-life needs and choices.

In the video game The Sims, the player has the opportunity to control a human-like character and the main goal of the game is to make sure that the character is always in good situations and that their personal and professional life is always on a positive note. Meanwhile, time goes by, just like in real life, and the character gets older until he finally dies at the end. The player is responsible for the life of that being but if the player doesn't give any orders to the character, he will react autonomously to fulfill his needs. It was revolutionary the way that an AI character could behave in a video game; people could...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}