News | About | Get Frugalware | Packages | Documentation | Discussion Forums | Bug Tracker | Wiki | Community | Development

Löve

From FrugalWiki

Jump to: navigation, search
i18n
English
Dansk
Français
Magyar

Contents

Löve

Love.png

LÖVE is a framework for making 2D games in the Lua programming language and SDL for the gui. LÖVE is totally free, and can be used in anything from friendly open-source hobby projects, to evil, closed-source commercial ones. LÖVE has also a physical module based of Box2d, to create, to detect and to manage collisions between objects and to simulate realistic physical effects. LÖVE is published with zlib licence.


Installation

Root terminal 48px.png
# pacman-g2 -S love


Load a game

LÖVE can load a game in two ways :

User terminal 48px.png
$ love foo.love

This command run the game which is in foo.love (zip file rename).

User terminal 48px.png
$ love pathtogame/

This command run the game from pathtogame if this folder contain the file main.lua.


Example : Hello world

Create a folder which contain the file main.lua and add this lines with your favorite editor :

function love.draw()
    love.graphics.print("Hello World", 400, 300) 
end

Run the love command with folder name and enjoy.


Links

Personal tools
Namespaces
Variants
Actions