Page 1 of 1

Confused by Getting started

Posted: Mon Feb 18, 2013 5:29 pm
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?!

Re: Confused by Getting started

Posted: Mon Feb 18, 2013 5:30 pm
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?

Re: Confused by Getting started

Posted: Mon Feb 18, 2013 5:51 pm
by noatom
ubuntu

Re: Confused by Getting started

Posted: Mon Feb 18, 2013 9:58 pm
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/

Re: Confused by Getting started

Posted: Tue Feb 19, 2013 7:06 am
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.

Re: Confused by Getting started

Posted: Tue Feb 19, 2013 2:22 pm
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 ".")