LuaPill (short for "Practical Isometric Layering Library") is an engine for generating isometric maps for Löve2D and Lua.
See Example for usage, or try one of the demos.
Just git clone
the repository and run love demo/editor
.
function love.load()
map = require "luapill"
local config = {
tilewidth = 128,
tileheight = 64,
folder = "images"
}
map:setup(config)
end
function love.update(dt)
end
function love.draw()
map:draw()
end
config = {
tilewidth = number, -- required
tilewidth = number, -- required
folder = "path", -- required
sortFolder = boolean, -- optional, default false
mapSize = number, -- optional, default 32
defaultTile = number, -- optional, default 1
}
To be written, look at the code for now.
Just copy the luapill.lua
file to wherever you want it.
Then require it where you need it:
local luapill = require "luapill"
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
LuaPill is licensed under zlib/libpng License (Zlib), see the LICENSE.md.