1 decade ago by AutoDMC
So how do you guys handle gamestates? The game I'm working on has a few game states. As an RPG, I've got a few:
Title Screen
Map Screen
Equipment Screen
Item Use Menu Screen
Battle System
Story Cutscene Player State
With the various transitions thereof.
So, I've happily created a title screen program. Looks cool. Made a mapscreen out of a level and some entities... nice.
But I'm a PHP web developer, not a game developer (yet!), but I need a way to handle switching between states, and I'm not sure where to start.
So is there an easy way to handle gamestates in ImpactJS? I found Boneheadmed's Director, which can handle switching between maps (a requirement in the Map state above, can't wait to use it)... but I need something even more meta than that.
Still researching, and I'm finding some neat general info, but it seems like such a core thing for a game I can't imagine there isn't already a best practice for this already...
Title Screen
Map Screen
Equipment Screen
Item Use Menu Screen
Battle System
Story Cutscene Player State
With the various transitions thereof.
So, I've happily created a title screen program. Looks cool. Made a mapscreen out of a level and some entities... nice.
But I'm a PHP web developer, not a game developer (yet!), but I need a way to handle switching between states, and I'm not sure where to start.
So is there an easy way to handle gamestates in ImpactJS? I found Boneheadmed's Director, which can handle switching between maps (a requirement in the Map state above, can't wait to use it)... but I need something even more meta than that.
Still researching, and I'm finding some neat general info, but it seems like such a core thing for a game I can't imagine there isn't already a best practice for this already...