Interesting article! I will have to look into state machines a bit more in Kaplay. At this point in my game development journey (very early) I am drawn to frameworks/libraries like Kaplay/Phaser/Pixi more than game engines. Time will tell. Thank you for the article.👍✌️
Interesting article! I will have to look into state machines a bit more in Kaplay. At this point in my game development journey (very early) I am drawn to frameworks/libraries like Kaplay/Phaser/Pixi more than game engines. Time will tell. Thank you for the article.👍✌️
Love the way how intuitive it looks when defined.
But...
k.state("menu", [
"menu",
Why do you have two menus declared?
The first param is the default state. The second param is an array of all possible states you want to define. That's why "menu" is repeated twice.