The head "False Knight" at Hollow Night does not use advanced AI as machine Learning or deep Learning, which are Ias of learning.
You can decorate the patterns of bosses with time in Hollow Night, such as when he will attack in this way or jump or hit the club on both sides of the floor, and his brain memorizes these patterns over time.
So False Knight uses a simple AI called : Finite state machine. It’s a good start to start studying.
What does this mean? That it has its preset attacks for example:
- Jump attack and clap on the character’s course.
- Simple clava attack.
- Clava attack with chao power.
- Clava attack in the center of both sides.
Basically the finite state machine will tell the conditions under which it will perform each attack. Example of conditions:
- Player is near.
- Playes is far away.
- Player is on the air.
A C# representation could be:
public enum BossStateIA
{
ExecutandoAcao,
RequerAcao
}
public enum BossAcao
{
Nenhuma,
AtaqueSimples,
AtaquePulo,
AtaqueEspecial
}
public class Boss
{
private BossStateIA State;
private Acao AcaoAtual;
private Acao IA()
{
Acao acao;
//Define a próxima ação a ser feita em uma máquina de estados
//finitas, simplesmente use ifs, and e or. Se o personagem
//está perto, longe, pouca vida ets.
return acao;
}
public void Update()
{
if (State == BossStateIA.RequerAcao)
{
AcaoAtual = IA();
State = BossStateIA.ExecutandoAcao;
}
//Executa o código de acordo com a ação atual.
//No final da ação defina a variável State para RequerAcao.
}
}
Are you sure you need an artificial intelligence, not a 'simple' intelligence, with predefined and unchanged standards, like 98% of the world’s games?
– Arthur Siqueira
recommend seeing the following websites before making that decision: https://answall.com/questions/86869/o-que%C3%A9-Intelig%C3%aancia-artificial? Rq=1, https://pt.wikipedia.org/wiki/Inteligência_artificial, https://www.tecmundo.com.br/intel/intelid/o-que-e-inteligencia-artificial-.htm, https://canaltech.com.br/inteligencia-artificial/entenda-importancia-da-inteligencia-artificial-100442/
– Arthur Siqueira