State Machine for Games: Summarizing and Simplifying
State machines (FSM) are the old school in game development. They are present since the beginning, when the game complexity starts to increase, requiring a little more logic to control the different possible game states or a player state. What few know is that a state machine can be used to control almost everything in a game, and contrary to what many think, it is not exactly an artificial intelligence.