https://github.com/r6915ee/acre
A state management library for Lua game development
https://github.com/r6915ee/acre
game-development game-state love2d lua lua-library
Last synced: 5 months ago
JSON representation
A state management library for Lua game development
- Host: GitHub
- URL: https://github.com/r6915ee/acre
- Owner: r6915ee
- License: mit
- Created: 2025-07-29T03:38:24.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-07-29T07:22:19.000Z (6 months ago)
- Last Synced: 2025-07-29T09:36:47.009Z (6 months ago)
- Topics: game-development, game-state, love2d, lua, lua-library
- Language: Lua
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# acre
**acre** is a game development library made in the Lua language focused on
state management. It is meant primarily to be versatile, such as being
usable on Lua versions supporting Lua 5.1 syntax, allowing pretty much
any type to be used, and more.
## Usage
**acre** revolves around tables. As such, *most* table syntax should be
applicable to acre if you wish to modify the state at runtime.
```lua
Acre = require("acre")
local state = {
helloWorld = function(_)
print("Hello, world!")
end,
}
Acre:switchState(state)
-- You can pass a variable number of arguments as well!
Acre:callback("helloWorld")
```
## License
**acre** is licensed under the [MIT License](LICENSE).