$ luarocks install statemanager.tl
A stack-based game state manager for Lua and typed with Teal. It was designed
to work with LÖVE 2D, but it can probably work with other Lua game frameworks.
Suppose your game has a main game loop, and when you hit the pause button, you
enter the pause state. When you hit the pause button again, the pause state
exits and you reenter the main loop state of the game. That's what this
library can take care of: pausing states, entering states, and exiting states
using a stack.
Versions
Dependencies
lua >= 5.1