I wanted to know what are the best frameworks // methods for managing game state and like a round based system where I need certain things to trigger.
What I am looking for is essentially a framework or module that handles essentially the round system for my game, like it chooses two people to fight, makes everyone else spectate, and can manage like who wins who loses, etc.
If there isn’t a good option for this, how do you guys reccommend like making this myself from scratch.
In terms of organization instead of having a lot of if statements, while loops, and coroutine.close stuff that you see in most round based tutorials I prefer using the promise library for a round system.