3 ms·
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.
by tuzemec 3y ago
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-machine-library-in-javascript https://kentcdodds.com/blog/implementing-a-simple-state-mach...