敵の行動AIというのはゲームそのものの出来栄えに直結してるので難しいですね!
もう少し状況を評価して行動するAIにできそうですが、敵の種類が増えるまでひとまずのAIが完成しました!
単純な完全ランダム行動ではなく、自分の行動履歴と周囲のキャラクターとの距離や行動によって確率が変動するAIになっています~!
何度も起動して放置しましたが、だいたいバランスの取れた行動になっているのではないでしょうか・・・少なくとも、ずっと攻撃しなかったり、攻撃ばっかりして隙がない、なんてことはありません~!いい感じです!!
~・~・~・~・~・~・~・~・~
The enemy AI behavior is a difficult problem because it is directly related to the quality of the game, isn't it?
I can make the AI a little better in how it assesses the situation, but as the variety of enemies continues to increase, I've completed this AI for now!
It is not a simple completely random action, but my AI changes the probability depending on the action history and the distance and actions of the surrounding characters.
I launched the game several times to check this AI, and the behavior is pretty well balanced. At least they didn't keep attacking all the time, nor did they keep showing an opening all the time. Good job!敵の行動AIというのはゲームそのものの出来栄えに直結してるので難しいですね!
もう少し状況を評価して行動するAIにできそうですが、敵の種類が増えるまでひとまずのAIが完成しました!
単純な完全ランダム行動ではなく、自分の行動履歴と周囲のキャラクターとの距離や行動によって確率が変動するAIになっています~!
何度も起動して放置しましたが、だいたいバランスの取れた行動になっているのではないでしょうか・・・少なくとも、ずっと攻撃しなかったり、攻撃ばっかりして隙がない、なんてことはありません~!いい感じです!!
~・~・~・~・~・~・~・~・~
The enemy AI behavior is a difficult problem because it is directly related to the quality of the game, isn't it?
I can make the AI a little better in how it assesses the situation, but as the variety of enemies continues to increase, I've completed this AI for now!
It is not a simple completely random action, but my AI changes the probability depending on the action history and the distance and actions of the surrounding characters.
I launched the game several times to check this AI, and the behavior is pretty well balanced. At least they didn't keep attacking all the time, nor did they keep showing an opening all the time. Good job!
youtube post: N1eLjhIn6fE