mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
19 lines
384 B
Lua
19 lines
384 B
Lua
|
local pop = require "pop"
|
||
|
|
||
|
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
|