running LOVE games in Ubuntu

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
User avatar
ac3raven
Citizen
Posts: 60
Joined: Tue May 19, 2009 1:14 am

running LOVE games in Ubuntu

Post by ac3raven »

the LOVE documentation is absolutely no help to me with this.

According to the documentation, I can drag my main.lua file onto the executable and it'll load the game. It's doesn't work like that in Ubuntu. So how do I do this?
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: running LOVE games in Ubuntu

Post by qubodup »

dragging main.lua....? no: file.love

do you know what a console/terminal/command-line is?

love .

if the main.lua is in the folder

love file.love

if there is a file.love
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
User avatar
ac3raven
Citizen
Posts: 60
Joined: Tue May 19, 2009 1:14 am

Re: running LOVE games in Ubuntu

Post by ac3raven »

yes, I know what a terminal is. I've been using linux for over a year now, mostly ubuntu and fedora. That's not the problem.

now, could you explain what I need to do in coherent sentences?
User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

Re: running LOVE games in Ubuntu

Post by osgeld »

open term
goto the folder where your .love file is
type in love name.love

OR

open term
goto the folder where your project's main.lua script is
type in love .
dtaylorl
Prole
Posts: 8
Joined: Tue May 19, 2009 2:57 am

Re: running LOVE games in Ubuntu

Post by dtaylorl »

I had the same problem. You need to tell love to open the folder (not the file) of your project. I do it this way
1. Open terminal
2. Type "love "
3. Drag my project folder onto the terminal
4. Press "Enter" on my keyboard!
User avatar
ac3raven
Citizen
Posts: 60
Joined: Tue May 19, 2009 1:14 am

Re: running LOVE games in Ubuntu

Post by ac3raven »

okay, I think I got it. Now I need to start learning lua. ;)
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: running LOVE games in Ubuntu

Post by bartbes »

A post I made about assigning the filetype to love: http://love2d.org/forum/viewtopic.php?f=3&t=530
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: running LOVE games in Ubuntu

Post by rude »

ac3raven wrote:the LOVE documentation is absolutely no help to me with this.
Sorry, should probably fix that.
Post Reply

Who is online

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