1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-10-14 03:41:23 +02:00
Files
wiki/wiki/love.md
2025-10-02 01:24:39 +02:00

1.5 KiB

LOVE

LOVE or LÖVE is a game engine that can be used to make 2-dimensional games using the lua programming language.

Setup

On the LOVE website a guide for Windows, MacOS and Linux can be found. On most Linux distributions LOVE can usually be installed with the corresponding package manager and the package love.

Usage

This section addresses the usage of LOVE.

Creating, Running and Packaging Games

On Linux a game directory should be created and the game can be created inside. A directory has to include a file named main.lua at least.

To run the game the following command can be used to run the game. <game-directory> is the path to the game directory. When inside the directory already, this can just be ..

love <game-directory>

For building the game, the game directory has to be compressed first, then compiled and finally the permissions has to be changed to make the compiled file runnable. Afterwards the game can be compiled using the following command, where <game-directory> is the path to the game directory and <game-name> is the name the compiled file should be called.

zip -9 -r <game-name>.love <game-directory>
cat /usr/bin/love <game-name>.love > <game-name>
chmod a+x <game-name>

Afterwards the compiled file can simply be run using the usual Shell command.

./<game-name>