I've stumbled upon this post about building simple state machines [1] a while ago. I was working on a small game and it helped a lot with the "enemy' behavior.
[1] - https://kentcdodds.com/blog/implementing-a-simple-state-mach...
[1] - https://kentcdodds.com/blog/implementing-a-simple-state-mach...
No comments yet.