## What software/methods do you use to edit/run your code?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Kazagha
Prole
Posts: 40
Joined: Tue Oct 04, 2011 7:05 am

### Re: What software/methods do you use to edit/run your code?

Robin wrote:
Kazagha wrote:It's pretty cool that you can run it directly from a directory without needing to package it into a .love file. I didn't know that. I think I will be doing it this way in the future.
Interesting. You're not the first to be surprised this is possible. Why would so many people not know this?
For me it's because you only ever seen games packaged in the .love format on the forums, so when I went to the wiki to get the low down (http://love2d.org/wiki/Game_Distribution) I just thought it was the only way.

I know that I read the 'getting started' page, for sure. Though I didn't see it.

-Kazagha

Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

### Re: What software/methods do you use to edit/run your code?

Maybe it should feature a bit more prominent, to prevent tl;dr.

And, yeah, on the forum we only distribute .loves, because folders are a bit hard to upload.

Kazagha
Prole
Posts: 40
Joined: Tue Oct 04, 2011 7:05 am

### Re: What software/methods do you use to edit/run your code?

It was quite the reading comprehension failure on my part. I did read the bit about running it from the command line, I remember that but it didn't click.

Maybe a bold subheading under Windows, <Running from directory> and <Running from .love file>. Or a picture;
directory.gif (3.43 KiB) Viewed 1011 times
-Kazagha

GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

### Re: What software/methods do you use to edit/run your code?

Kazagha wrote:It was quite the reading comprehension failure on my part. I did read the bit about running it from the command line, I remember that but it didn't click.

Maybe a bold subheading under Windows, <Running from directory> and <Running from .love file>. Or a picture;
directory.gif
-Kazagha
That picture is awesome, we should put it on the wiki!

Socapex
Prole
Posts: 2
Joined: Tue May 01, 2012 11:46 pm

### Re: What software/methods do you use to edit/run your code?

Reviving an old thread but it was really useful to me. Just setting up Love here, using Sublime Text... Those two have to work together

You can easily launch Love (and I've added the console for now) using the following sublime-build script. This will build all your LUA scripts using Love as default, so if you work in lua with other frameworks you would remove the "selector": "source.lua" line. More info on the build system.

Code: Select all

{
"path": "c:\/Program Files (x86)\/love",
"cmd": ["love", "--console", "\$(CURRENT_DIRECTORY)"],
"selector": "source.lua",
"shell": "true"
}


Note this is for windows, I still have to give it a go under OSX but I'm sure it's as straight forward. Hope this helps someone as your tips on Notepad++ helped me. Spread the Sublime Love!

### Who is online

Users browsing this forum: No registered users and 8 guests