/beloved

LÖVE library

Primary LanguageLuaMIT LicenseMIT

beloved

beloved is LÖVE library for making and testing UI.

Example

Installation

Copy the file beloved.lua in your project folder and call it using require. There is example below this.

Usage example

beloved = require 'beloved'

function love.load()
  beloved:load()
end

function love.draw()
  beloved:draw()
end

function love.mousepressed(x, y, button)
  beloved:mousepressed(x, y, button)
end

function love.mousereleased(x, y, button)
  beloved:mousereleased(x, y, button)
end

function love.keypressed(key)
  beloved:keypressed(key) -- Default key is 'd' for activating beloved mode, you can change this in beloved.lua
end

License

MIT