Support LÖVE games
LÖVE is a FLOSS 2D game engine allowing to write games in Lua and distribute them as cross-platform .love packages to run with the engine.
.love files are just renamed .zip containing the game's code and resources.
The problem with LÖVE is that versions tend to not be retro compatible and distros often only package the latest, making older games not playable anymore. Flatpak can help solving this problem.
We could look into the project's conf.lua file, usually containing all the information we need such as the author, the title, sometimes an icon and the expected version of LÖVE.
Here is for reference the conf.lua of the mari0 game:
function love.conf(t)
t.author = "Maurice"
t.identity = "mari0"
t.console = false
--t.screen = false
t.modules.physics = false
t.version = "0.8.0"
end
We could them simply extract this information and package the game with the expected LÖVE version, available as a source tarball.