Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1bardesign/batteries-examples
Semi-interactive examples for batteries
https://github.com/1bardesign/batteries-examples
Last synced: 3 months ago
JSON representation
Semi-interactive examples for batteries
- Host: GitHub
- URL: https://github.com/1bardesign/batteries-examples
- Owner: 1bardesign
- Created: 2020-04-08T00:15:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T00:18:33.000Z (about 1 year ago)
- Last Synced: 2023-12-05T01:29:24.006Z (about 1 year ago)
- Language: Lua
- Homepage:
- Size: 79.1 KB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ⚡ Examples for `batteries`
A collection of example usage scripts for [batteries](https://github.com/1bardesign/batteries).
Kept separate from the main `batteries` repo to avoid cluttering the commit history and bloating the repo size.
Comes with a [love](https://love2d.org)-compatible `main.lua` which allows browsing the source and output interactively.
# Index of Examples
- `table.lua` - table api extensions
- `math.lua` - math api extensions.
- `class.lua` - simple object oriented basics
- `functional.lua` - functional programming facilities
- `sequence.lua` - oop sugar for anything sequential
- `2d_geom.lua` - basic colliding and overlapping entities using `intersect` and `vec2`; requires love.
- `set.lua` - in/out sets# TODO
- `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.# Library Culture and Contributing
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.