ParentFull thread0xabe·Game Programming Patterns by Robert Nystrom has a chapter on state machines. It’s both freely available online or for purchase if you really like it and want to support him.http://gameprogrammingpatterns.com/state.htmlView on HN