トピック
受付中
julith julithJKL

enemy AI

does anyone know how to make a enemy ai program if so could you tell me how to make it
1そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Just imagine you're standing over the shoulder of someone controlling the enemy, but who has never played the game before. You have to tell him what he should do. ... Ok. Look, he's over there. Rotate your ship towards that direction. Now apply your thrusters. When you get within range, fire. Oh. He moved. Ok. Reverse thrusters. We have to avoid the gravitation field of that star. ... etc.
1そうだね
プレイ済み
返信[2]
親投稿
OlOOlOOl pi_r_round
Once you figure out how the enemy should behave. You have to define the rules he must play by. A really simple example is the "house rules" for the card game "blackjack": "The dealer must hit until the cards total 17 or more points."
1そうだね
プレイ済み
返信[3]
親投稿
julith julithJKL
ok thanks
1そうだね
プレイ済み
返信[4]
親投稿
DasEtwas MyTheo00
AI is one of the most complicated things even in modern computer science, but most AIs just have to make 3 things "Walk, turn, shoot" that´s probably what you are making?
1そうだね
未プレイ