Confused by Getting started

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
noatom
Prole
Posts: 10
Joined: Sun Feb 17, 2013 9:51 pm

Confused by Getting started

Post by noatom »

So,I created the lua script like it says: https://love2d.org/wiki/Getting_Started

But how do I turn it into a love file?!
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Confused by Getting started

Post by Nixola »

You put the script (and every file it needs) inside a zip (ZIP! Rar and 7z do not work, so don't use them! Use a zip!) and you rename it to .love instead of .zip, what OS are you on?
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
noatom
Prole
Posts: 10
Joined: Sun Feb 17, 2013 9:51 pm

Re: Confused by Getting started

Post by noatom »

ubuntu
scutheotaku
Party member
Posts: 235
Joined: Sat Dec 15, 2012 6:54 am

Re: Confused by Getting started

Post by scutheotaku »

noatom wrote:ubuntu
Try this:
From the command line:

Go to your project directory a la cd ~/Projects/EpicGame
Run zip -r ../${PWD##*/}.love *
Your fully-prepared .love file shall be located right outside of your project directory
Cake!
Source: https://love2d.org/wiki/Game_Distribution

Or maybe the instructions here will be more clear (though they're virtually the same):
http://nova-fusion.com/2011/06/14/a-gui ... th-love2d/
User avatar
micha
Inner party member
Posts: 1083
Joined: Wed Sep 26, 2012 5:13 pm

Re: Confused by Getting started

Post by micha »

If you only want to run the code, then you don't need to create a .love file. In that case, to run the script in

Code: Select all

folder/main.lua
just type

Code: Select all

love folder
Replace "folder" by the name of the folder.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Confused by Getting started

Post by kikito »

micha wrote:If you only want to run the code, then you don't need to create a .love file. In that case, to run the script in

Code: Select all

folder/main.lua
just type

Code: Select all

love folder
Replace "folder" by the name of the folder.
You can also do

Code: Select all

cd folder
and then

Code: Select all

love .
(notice the dot ".")
When I write def I mean function.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 11 guests