statemanager.tl

A stack-based game state manager for Lua and typed with Teal

$ 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

0.1.0-15 days ago0 downloads

Dependencies

lua >= 5.1

Manifests