A collection of example usage scripts for batteries.
Kept separate from the main batteries
repo to avoid cluttering the commit history and bloating the repo size.
Comes with a love-compatible main.lua
which allows browsing the source and output interactively.
table.lua
- table api extensionsmath.lua
- math api extensions.class.lua
- simple object oriented basicsfunctional.lua
- functional programming facilitiessequence.lua
- oop sugar for anything sequential2d_geom.lua
- basic colliding and overlapping entities usingintersect
andvec2
; requires love.set.lua
- in/out sets
state_boring.lua
- barebones state machine example.stable_sort.lua
- show the benefit of a stable sort for sprite z sorting; requires love.state_ai.lua
- visualised state machine ai for a sparring partner; requires love.colour.lua
- various colour routines; requires love.benchmark.lua
- benchmark various functionality interactively; requires love.
As with batteries - I'm open to collaboration and happy to talk through issues or shortcomings.
Pull Requests with new demos are welcome, though it will be required that they work with the rest of the example framework.
Fixes and enhancements to existing demos are also great and will generally be merged optimistically.