Player, Enemies and other entities will use an Entity State Machine to cycle through their respective states
For example, a Player can Walk, Jump, and Die, all of which are different states with different animations, and so with a state machine the player would be able to switch between these states seamlessly
Using a state machine will allow for the addition of states in the future without a total overhaul in the entity's logic
Entity State Machine
Player
, Enemies and other entities will use anEntity State Machine
to cycle through their respective statesPlayer
canWalk
,Jump
, andDie
, all of which are different states with different animations, and so with a state machine the player would be able to switch between these states seamlessly