官术网_书友最值得收藏!

Possibility and Probability Maps

In this chapter, we'll be talking about possibility and probability maps, understanding how and where they are used. We'll also be learning the best practices for creating an AI that reacts to the player and that also chooses the best options, as we look to create a character that can make decisions as a human would.

As we saw previously, video games used to rely heavily on predetermining the behavior of what the AI could do in different scenarios that were either created by the game itself or by the player's actions. This method has been present since day one and is still being used today, making it an extremely valuable method for creating quality AI characters. Before explaining, in detail, what each of the maps do, and before demonstrating how to create them in order to develop good AI behavior, it's always good to have a general idea of what possibility and probability maps are and where or when they are applied.

As gamers, we tend to enjoy the product as a whole, experiencing every part of the game with enthusiasm and dedication, forgetting about the technical aspects of the game. For that reason, we sometimes forget that even simple things that happen while we play were already destined to occur that way, and that there is a lot of thought and planning behind that moment. Everything happens for a reason, as we often hear, and this can also be applied to video games. From the moment you clicked the start button to begin the game to the last awesome combo that you performed to defeat the final boss of the game, everything was planned to happen and it was necessary for a programmer to input all of those possibilities within the game. If you clicked the A button and your character jumped, that happened because it was determined to be that way. The same thing is valid for AI enemies or allies on the game; when they do something to defeat or help you, it was necessary for that behavior to be programmed, and to do that we use states.

主站蜘蛛池模板: 叙永县| 桃园县| 岫岩| 涡阳县| 常熟市| 天柱县| 阿勒泰市| 库尔勒市| 皋兰县| 佳木斯市| 新邵县| 安泽县| 江安县| 南康市| 治多县| 松原市| 岳池县| 沙洋县| 房产| 平和县| 珠海市| 多伦县| 南丰县| 朝阳县| 顺昌县| 库伦旗| 长兴县| 大竹县| 雷州市| 金坛市| 上蔡县| 东阳市| 二连浩特市| 武穴市| 大理市| 壤塘县| 平安县| 陈巴尔虎旗| 徐州市| 修水县| 兴文县|