Peep is a library designed for the awesome LÖVE framework. Piggybacking off of LoveFrames, Peep allows you to interactively look through the contents of a Lua variable--most notably tables.
local STI = require "libs.sti"
local Peep = require "libs.Peep.init"
function love.load()
map = STI.new("assets/maps/map02")
peep_map = Peep.new("map", map)
end
function love.update(dt)
map:update(dt)
peep_map:update(dt)
end
function love.draw()
map:draw()
peep_map:draw()
end
function love.mousepressed(x, y, button)
peep_map:mousepressed(x, y, button)
end
function love.mousereleased(x, y, button)
peep_map:mousereleased(x, y, button)
end
This code is licensed under the MIT Open Source License. Check out the LICENSE file for more information.