I am confused on how to play a game on linux

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.
Spirit19
Prole
Posts: 8
Joined: Fri Jul 11, 2014 12:26 am

Re: I am confused on how to play a game on linux

Post by Spirit19 »

Now I get the error sayin that love is not installed but I know I installed it in the software center.

Code: Select all

love ~/Desktop/game
this is what I typed in.
User avatar
BozoDel
Party member
Posts: 164
Joined: Fri Nov 01, 2013 10:28 pm

Re: I am confused on how to play a game on linux

Post by BozoDel »

Just to clarify things.

First of all, you should know that a .love file is just a zipped folder, and that's why you can "execute" a folder like that.

Now, let's assume your main.lua is in a folder called mygame, in your desktop. That makes it a love folder, which you can open with LÖVE as if it were a .love file.

Now there's two ways of doing it. The first is to do it in a single shot:

Code: Select all

love ~/Desktop/mygame
The tilde is a shorthand for /home/yourusername. I'm assuming that your Ubuntu is in English (cause the Desktop can receive other names in other languages). Also pay attention that Linux is case-sensitive, so it won't work if you type desktop instead of Desktop. But you get it, that command runs that folder with love.

But there's a slightly different way. First, you go to that folder:

Code: Select all

cd ~/Desktop/mygame
cd means "change directory".

And once you're there:

Code: Select all

love .
The dot means "this folder I'm in".

I don't hang much around these forums nowadays, but you can PM me if you need any Ubuntu-specific help.


EDIT: Oops, seems I was a bit late. Or maybe I didn't read the whole thread, sorry. Anyway... can you try installing löve again? Maybe from the command line with:

Code: Select all

sudo apt-get install love
Also, are installing from Ubuntu's repos, or from löve's PPA? Cause the first one might be outdated.
Spirit19
Prole
Posts: 8
Joined: Fri Jul 11, 2014 12:26 am

Re: I am confused on how to play a game on linux

Post by Spirit19 »

Well, you are very helpful sir (not that others werent). I have the PPA i just didnt do anything else after that cuz i didnt know how. do i do

Code: Select all

sudo apt update
sudo apt-get install love
Spirit19
Prole
Posts: 8
Joined: Fri Jul 11, 2014 12:26 am

Re: I am confused on how to play a game on linux

Post by Spirit19 »

It worked! Thanks to all who helped me. Especially you Bozodel! :D
User avatar
BozoDel
Party member
Posts: 164
Joined: Fri Nov 01, 2013 10:28 pm

Re: I am confused on how to play a game on linux

Post by BozoDel »

You're welcome!

(I'm glad you remembered apt update, I totally forgot about it)
User avatar
Jimanzium
Party member
Posts: 103
Joined: Sun Jun 03, 2012 2:39 pm
Contact:

Re: I am confused on how to play a game on linux

Post by Jimanzium »

An easier way to do this would be to:

Press ctrl + alt + t to open the terminal.
Type "love" and a space.
Drag and drop the folder with all the games files in (main.lua, conf.lua etc.) or a .love onto the terminal to where you typed "love"
Press enter, the game/app should start.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest