Difference between revisions of "LuaPill"

(Created page with "{{#set:LOVE Version=0.9.1}} {{#set:Description=LuaPill (short for "Practical Isometric Layering Library for Lua") is an engine for generating isometric maps for Löve2D and Lua.}...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{#set:Name=LuaPill}}
 
{{#set:LOVE Version=0.9.1}}
 
{{#set:LOVE Version=0.9.1}}
 
{{#set:Description=LuaPill (short for "Practical Isometric Layering Library for Lua") is an engine for generating isometric maps for Löve2D and Lua.}}
 
{{#set:Description=LuaPill (short for "Practical Isometric Layering Library for Lua") is an engine for generating isometric maps for Löve2D and Lua.}}
 +
 +
'''LuaPill''' (short for "Practical Isometric Layering Library for Lua") is an engine for generating isometric maps for Löve2D and Lua.
  
 
<source lang="lua">
 
<source lang="lua">
Line 19: Line 22:
 
   map:draw()
 
   map:draw()
 
end
 
end
 +
</source>
  
function love.keypressed(key)
 
    map:keypressed(key)
 
end
 
 
function love.keyreleased(key)
 
  map:keyreleased(key)
 
end
 
 
function love.mousepressed(x, y, button)
 
  map:mousepressed(x, y, button)
 
end
 
</source>
 
  
 
<source lang="lua">
 
<source lang="lua">
 
config = {
 
config = {
       tilewidth = 128,
+
       tilewidth = number, -- required
       tilewidth = 64,
+
       tilewidth = number, -- required
       folder = "images",
+
       folder = "path", -- required
 
       sortFolder = boolean, -- optional, default false
 
       sortFolder = boolean, -- optional, default false
       defaultTile = number -- optional, default 1
+
       defaultTile = number, -- optional, default 1
 +
      tileIndex = number -- optional, default 1
 
   }
 
   }
 
</source>
 
</source>
  
Grab it and give it a spin on [https://github.com/Kyrremann/LuaPill]. There is also a demo there. Enjoy!
+
Grab it and give it a spin on [https://github.com/Kyrremann/LuaPill]. There is even a full working demo there.
 +
 
 +
Enjoy!
  
 
[[Category:Libraries]]
 
[[Category:Libraries]]

Latest revision as of 20:09, 8 February 2015



LuaPill (short for "Practical Isometric Layering Library for Lua") is an engine for generating isometric maps for Löve2D and Lua.

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
      defaultTile = number, -- optional, default 1
      tileIndex = number -- optional, default 1
   }

Grab it and give it a spin on [1]. There is even a full working demo there.

Enjoy!