Figure 1: Enemy State Machine

Overview of the enemy states.

Patrol / Setting the variables for the enemy.

Patrol / Checking for variables.

Patrol / Moving the enemy between patrol points.

Patrol / Switching patrol points.

Chase / Checking the player's position.

Chase / Pursuing the player and causing damage.

Chase / Being hit or defeated by the player.

Defeating the enemy.
Figure 2: Item Pick Up

The item itself being picked up, recognized, and performing its duty.

Setting the item as the target to be picked up.
Figure 3: Scene Transition, triggered by picking up all of the Trigger items.
Figure 4: Control over the player's health.

Figure 5: UI set up for the Pause and Game Over states.

Pause State and Menu appearance.
