What the FUCK is this?
This is a simple web-based generator for
conf.lua files, which are used by the
Love2D (AKA the LÖVE framework). You just fill in the options you want, click the button, and it writes the file contents for you. That simple.
What is conf.lua and why does it exist?
conf.lua is an optional configuration file that LOVE2D reads before anything else when your game starts. It reads before love.load(), and before any modules initialize. It lets you tell LOVE2D how to set up the window, which modules to load, what version of LÖVE you are targeting, and a few other things. Without it, LÖVE just uses its built-in defaults (800x600 resolution, windowed, all modules turned on).
It must be placed in the root of your game directory alongside main.lua.
What does a generated conf.lua look like?
Here is an example of what this tool produces:
function love.conf(t)
t.title = "My Game"
t.version = "12.0"
t.console = false -- (Opens the console window. Only works on Windows)
-- Window
t.window.title = "My Game"
t.window.width = 800
t.window.height = 600
t.window.fullscreen = false
t.window.resizable = false
t.window.vsync = 1
-- Modules
t.modules.audio = true
t.modules.graphics = true
-- ... etc
end
You paste this directly into a file called
conf.lua in your project folder.
How do I use the generated file?
After clicking
[ Create conf.lua ]:
1. Copy the output or use the download button to save
conf.lua.
2. Place the file in the root of your LOVE2D project, next to your
main.lua.
3. Run your game normally. LOVE2D will pick it up automatically.
Your project folder should look something like this:
folder/
main.lua
conf.lua
...
Does this tool send my data anywhere?
Nope. Everything runs locally in your browser. Nothing is sent to a server. This page is powered by
Neocities. It's 100% JavaScript.
Why would you make this site?
Because I was bored, and because making a conf.lua file is tedious for me, so yeah.