Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/rxi/autobatch

Small LÖVE module to automate the use of SpriteBatches
https://github.com/rxi/autobatch

Last synced: 3 months ago
JSON representation

Small LÖVE module to automate the use of SpriteBatches

Lists

README

        

# autobatch
![](https://cloud.githubusercontent.com/assets/3920290/22617987/7d6bf71e-eac9-11e6-98ad-449224a8b7c0.gif)

A small [LÖVE](https://love2d.org/) (0.10.x) module which automatically uses
[SpriteBatches](https://love2d.org/wiki/SpriteBatch) when drawing the same image
multiple times in a row.

## Usage
The [autobatch.lua](autobatch.lua?raw=1) file should be dropped into an existing
project, and the following line put at the top of your `main.lua` file:

```lua
require "autobatch"
```

The module overrides `love.graphics` and should work automatically without any
additional changes to your code.

## License
This library is free software; you can redistribute it and/or modify it under
the terms of the MIT license. See [LICENSE](LICENSE) for details.