Pop.Box/main.lua
Paul Liverman III 723997fe7a mid-redesign
2015-11-20 03:30:40 -08:00

25 lines
537 B
Lua

local pop = require "pop" --TODO tell user that pop must be required with SLASHES
function love.load()
pop.box() -- returns the box element
-- or pop.create("box") (this is what is actually called when you call pop.box())
end
function love.draw()
pop.draw()
end
function love.mousepressed(button, x, y)
pop.mousepressed(button, x, y)
end
function love.mousereleased(button, x, y)
pop.mousereleased(button, x, y)
end
function love.keypressed(key)
if key == "escape" then
love.event.quit()
end
end