Translation(s): none


*DRAFT*

Packaging Love2d

This page describes the policy for including Love2d games in the Debian archive.

Introduction

Love2d is a 2d game development framework for the Lua language. It feature opengl graphics, audio, input handling, physics courtesy of box2d and all with the rapid development of Lua. It is ideal for beginning programming, prototyping, gamejams etc.

Structure of a Love Distribution

Love games are distributed in a ".love" file. A ".love" is file simply a zip of your lua code and associated game data. Please see the Game Distribution page on the Love2d wiki for details on how to structure the content of your .love file. Please, keep in mind that when you're executing a .love file through love2d, you're executing actual code that can access your computer resources in many ways, just like any other program can, so make sure to only execute code you can trust.

Structure of the Debian Package

Since a love2d game comes packed in a single file, it's easy for us to standardise the debian packaging structure. Basically we store the .love file under /usr/share/games/<package> and create a shell script to launch it against the love executable.

The following are example packaging files;

Where the name of the game is "foo"

""control""

Ensure depends include "love"

""copyright""

You must open up the .love file and capture the licensing of any included libraries (hardoncollider, middleclass, LUBE etc). Most are zlib and are found on the love2d wiki

""shell script""

Create a script to launch your game named "foo";

#!/bin/bash love /usr/share/games/foo/foo.love

""menu"" Create an entry to your script.

?package(foo):needs="X11" section="Games/Action" \

""manpage""

Create a manpage file named "foo.1"

.TH FOO 1 "August 17 2013" .SH NAME FOO \- Action platformer built in LOVE. .SH SYNOPSIS .B foo .SH DESCRIPTION This manual page documents briefly the .B foo command. .PP \\fBfoo\fP is a graphical action platform built using Lua and the LOVE framework. .SH OPTIONS This command executes a bash script of the foo.love package against the love executable. .SH SEE ALSO .BR love (1), .br .SH AUTHOR foo was written by ?FooBar Games.


Games/Development