A lightweight library to control game state in an intuitive way. To use it, just create a file for each state in states/ folder, with the same callbacks as love2d uses (i.e. my_state.draw() will be called instead of love.draw() when you are in the state my_state). At the start, call states.setup() then use states.switch("mystate",params). This will triggen the only non-vanilla state callback mystate.open(params) that allows you to pass data between states conveniently and make general setup on state switching (like visual transitions.)
-
Notifications
You must be signed in to change notification settings - Fork 2
Spellsweaver/States
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Game state library for love2d
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published