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?!
Confused by Getting started
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Confused by Getting started
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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
-
- Party member
- Posts: 235
- Joined: Sat Dec 15, 2012 6:54 am
Re: Confused by Getting started
Try this:noatom wrote:ubuntu
Source: https://love2d.org/wiki/Game_DistributionFrom 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!
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
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
just type
Replace "folder" by the name of the folder.
Code: Select all
folder/main.lua
Code: Select all
love folder
Check out my blog on gamedev
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Confused by Getting started
You can also domicha 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 injust typeCode: Select all
folder/main.lua
Replace "folder" by the name of the folder.Code: Select all
love folder
Code: Select all
cd folder
Code: Select all
love .
When I write def I mean function.
Who is online
Users browsing this forum: Google [Bot] and 8 guests