If you're using LVE:
Save your quads as a lua table, and turn them into LVE Quad objects with just a few lines of code
-- load the raw quad definitions that you created with Quadtastic
local raw_quads = require("res/quads")
image = love.graphics.newImage("res/sheet.png") -- load spritesheet
-- Create LVE Quads from raw quad definitions
quads = libquadtastic.create_quads(raw_quads, image:getWidth(), image:getHeight())
You can then draw these quads like so:
love.graphics.draw(image, quads.base)
Learn more about how to use quads and palettes in your LVE project
You can find executables of Quadtastic for Windows and OS X on itch.io, as well as a cross-platform .love
archive.
While the executable versions should run out of the box, the .love
version
requires LuaFileSystem.
If you have luarocks installed, you can install LuaFileSystem with
luarocks install luafilesystem
If you prefer to run Quadtastic from source, here is what you'll need to do
love
available on your pathluarocks install luafilesystem
.git clone [email protected]:25a0/Quadtastic.git
cd Quadtastic/
make app_resources
.love Quadtastic
Special thanks to the awesome people that contributed to the development of Quadtastic via pull requests, bug reports, feature suggestions, and constructive discussions! ❤️