Library:LÖVE
| Developer | LÖVE Development Team |
|---|---|
| License | zlib |
| Website | https://love2d.org |
| On this wiki | Facts · Code · Notes · Topics |
LÖVE (love2d, zlib license) runs Lua games from a .love file, which is a ZIP archive with main.lua at its root; a fused game is love.exe with that archive appended.
Overview
LÖVE is a C++ framework (repository love2d/love, commit b7daef0f7c1dc5888090f5d5b22d4eaf4ffd1d87, version header src/common/version.h: LOVE_VERSION_STRING "12.0", VERSION_CODENAME "Bestest Friend") that executes a game written in Lua (Library:Lua, in practice LuaJIT).
Game packaging
- A
.lovefile is a ZIP archive (Format:ZIP) mounted by PhysFS; the entry script ismain.luaand the optional configuration isconf.lua(src/modules/love/boot.lua:main_file = "main.lua", and a check for either main.lua or conf.lua before accepting a source). - A fused game is the LÖVE executable with the .love archive appended to it: boot.lua calls
love.filesystem.setSource(exepath)on the running executable and treats success as a fused game (love.filesystem.setFused). Because ZIP readers find the end-of-central-directory record from the file end,unzipor 7-Zip usually open a fused exe directly. If extra data follows the archive (for example a Windows signature) the source falls back to a StripSuffixIo that finds the ZIP end (Filesystem.cpp, setSource). - Source code is usually plain Lua text in the archive; games may precompile with LuaJIT
luajit -b, producing bytecode starting with1B 4C 4A(see Format:Lua bytecode; Unverified for LuaJIT headers on that page).
Identifying the version
Look for the strings love.version / the LOVE_VERSION_STRING constant; 11.x games print "11.5" style versions. src/common/version.h defines LOVE_VERSION_STRING "0.10.2" at tag 0.10.2 (commit 9e139779956ddba89333eece8104bd7b1b4ff2e7, codename "Super Toast", line 28 and 34) and "11.5" at tag 11.5 (commit 6eb8d546736d5915a8b5af30b2cf33456dfdcb1a, codename "Mysterious Mysteries"); VERSION_COMPATIBILITY lists the strings a game's conf.lua t.version may name (11.5: "11.5", "11.0" to "11.4"). The release folder next to a fused exe holds the LÖVE DLLs (love.dll, lua51.dll, SDL2.dll, OpenAL32.dll, mpg123.dll, msvcp120.dll in 11.x) - Unverified.
Related
Code & repositories
- https://github.com/love2d/love @
b7daef0f7c1dc5888090f5d5b22d4eaf4ffd1d87· license: Zlib (declared by the contributor; GitHub's detector did not recognize a license file)
LÖVE framework; filesystem source mounting and fused game detection
Tested on: source read, not run: source only · checked 2026-10-18