WINDOWS = require("path-to-lovely-windows")
You can use any variable name if you don't like "WINDOWS"...Try using "MAC" pun
WINDOWS = require("path-to-lovely-windows")
local table = {
f1 = {1024,720},
f2 = {720,600}
}
--so if the user press f1, the new window size will be 1024x720
function love.load()
WINDOW.initialize(320,200) -- your custom game size (note: it is not the same as the window size)
--then add the table to the module
WINDOW.addInputTable(table) --parameters are the table we created earlier
end
function keypressed(key)
WINDOW.keyInput(key)
end
--or if you want keyreleased, just put WINDOW.keyInput(key) in there.
TO-DO
Author: flamendless
Source Code: https://github.com/flamendless/lovely-windows
License: MIT license