Artificial Intelligence

Typical state transitions

The AI will start in an "IDLE" state. If they do not encounter any enemies or obstacles within range, they will move in to the "GOTO" state by picking a random waypoint to move to. While in the "GOTO" state the AI will move directly towards the destination. If they encounter an enemy within range they will change into the "ATTACK" state and try to destroy the enemy. If the enemy moves out of range or is dead, the AI will pick a new waypoint and change back to the "GOTO" state. If while in the "GOTO" state, the AI detects an obstacle in the way, they will change to an "EVADE" state. In the "EVADE" state the AI will turn by some angle until they are no longer detecting a collision. They will move along this new direction until they have cleared the obstacle. Once the obstacle is out of the way they can keep going to the original destination and change back to a "GOTO" state.

The AI will have a fuzzy state machine to decide what to do when it encounters an enemy or obstacle.

State diagram

Overview

AI algorithms apply mainly to Story Mode. Do we want them in battle mode too???

Septasoul AI will assist the players in combat as neccessary, though is otherwise a watcher... a mentor of sorts.. The old chinees man
Animal AIs are simpler and can be created from various stages in the development of the SeptaSoul algorithm.
As motion improves, we take freezes of the state machine timings and copy them to the animals.
These animals then become a dumber predetor algorithm that becomes increasingly intelligent the more intelligent the species.

SeptaSoul AI - All Levels

Play the AI against the animals as gameplay demands.
When player is under heavy fire, AI should assit.
When player is doing fine, or increasingly as the time limit (hidden from user

Spider AI - Earth Level

Swarm the player and bite to decrease health.

Ant AI - Fire Level

Attack and carry/push player into the magma area which will cause damage.

Penguin AI - Ice Level

Waddle the player into the ocean.
Using extremely high mass values for the penguin is acceptable.

Goat AI - Air Level

Tries to knock you off cliffs as you climb to the top of the board.
Getting knocked off the bottom of the board into the clouds kills you.

Home