I basically started with the thought: “it shouldn’t be too hard to match fighting game style input sequences” during a conversation in the discord…
And when I had stopped typing I had something that did this and much much more.
phaser3-hadoken is a library that can function as a general input manager mapping signals from arbitrary controllers (out of the box it supports keyboard and gamepad) into inputs that are meaningful to the game. This means you can do things like handle “jump” inputs and have that coming from a keyboard, a gamepad, or any other adapter you’ve hooked in allowing the player to seamlessly transition between them.
A game can run multiple instances of
hadoken meaning you can create one per player and player-specific events will be easy to process to support couch co-op gameplay.
And, yes, it comes with an input for fighting game inputs since that was the v0. Check out the demo.
I consider this beta-quality, it’s functional and I’ve used it for some small projects but I’ve also identified a lot of neat extras that could be added or alterations that would be worthwhile if it gets any amount of adoption.
If you have questions feel free to drop by discord or ask on thread.