Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thenerdie/Yonder
A ridiculously easy to use game state management library written in Lua, for the LOVE2D framework.
https://github.com/thenerdie/Yonder
Last synced: about 1 month ago
JSON representation
A ridiculously easy to use game state management library written in Lua, for the LOVE2D framework.
- Host: GitHub
- URL: https://github.com/thenerdie/Yonder
- Owner: thenerdie
- License: mit
- Created: 2020-03-15T21:42:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-23T22:50:32.000Z (over 4 years ago)
- Last Synced: 2024-08-02T06:17:40.634Z (4 months ago)
- Language: Lua
- Homepage:
- Size: 22.5 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-love2d - Yonder - A ridiculously easy to use game state management library for LOVE2D. (Helpers)
README
# Yonder
A very simple game state management library written in Lua, for the LOVE2D framework.To use it, simply follow these steps:
1. Make a screen
This is done by copy/pasting the the sample screen as the basis for a new screen.
2. Now, you add your screen at the top of ScreenManager.lua, like so:
```
local gameStates = { -- this is where you set the directories of your screens
["screenGAMEMAIN"] = require("");
}
```3. Require ScreenManager and switch to your first screen!
The bundled `main.lua` should work for all projects. It calls the major methods called by `love` in ScreenManager.lua. To switch screens, simply call `:SwitchStates()` in the ScreenManager from an screen! The `:Load()` callback contains a reference to ScreenManager, so you can have full access to the state manager without having to `require()`.