Figure 1: Enemy State Machine
Overview of the enemy states.
Overview of the enemy states.
Patrol / Setting the variables for the enemy.
Patrol / Setting the variables for the enemy.
Patrol / Checking for variables.
Patrol / Checking for variables.
Patrol / Moving the enemy between patrol points.
Patrol / Moving the enemy between patrol points.
Patrol / Switching patrol points.
Patrol / Switching patrol points.
Chase / Checking the player's position.
Chase / Checking the player's position.
Chase / Pursuing the player and causing damage.
Chase / Pursuing the player and causing damage.
Chase / Being hit or defeated by the player.
Chase / Being hit or defeated by the player.
Defeating the enemy.
Defeating the enemy.
Figure 2: Item Pick Up
The item itself being picked up, recognized, and performing its duty.
The item itself being picked up, recognized, and performing its duty.
Setting the item as the target to be picked up.
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.
Pause State and Menu appearance.
Game Over screen.
Game Over screen.
Back to Top