Enemy:Skeleton - Orhu/Summer2023Project GitHub Wiki

Overview

Skeletons are the most basic of basic enemies in the game. They move towards the player, do one basic slashing attack, and die in a few hits. Due to their low value, they are inexpensive to spawn, making it possible for them to spawn in large groups that can overwhelm an unprepared adventurer.

Behaviors

Movement

Skeletons always know the player's position, even if they cannot see the player. Skeletons navigate around obstacles and move as directly as they can towards the player. If the player moves somewhere the skeleton cannot reach, the skeleton will constantly move as close to the player as possible. If the skeleton is not able to reach the player when it spawns in, it will enter an idle state and not move until there is some way for it to reach the player.

Attacks

On Touch

If the skeleton touches the player (via walking into them/being walked into), deal damage. After making contact with the player, the skeleton will pause (maybe it's arm falls off or something) and will stop moving for (Exhaust Time), allowing the player to move away.

Special

The skeleton has no special behaviors.

Graphical representation of AI behavior

[Insert decision tree diagram here]

Sprite Gallery

[Insert sprites and animations here]