Skip to content

Commit 1632d1d

Browse files
authored
Merge pull request #8 from IwanTen/main
update Windows section with instructions on running an example program
2 parents 9922301 + d3e4af7 commit 1632d1d

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

docs/download.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ After downloading, extract the ZIP and serve the folder with a local web server.
3636

3737
## Running your program
3838

39-
The easiest way to run your L5 program is to drag the folder containing your main.lua onto the Love2d application. But to see error messages and printing in the console you will want to run from an IDE or command line. Here are platform-specific details:
39+
The easiest way to run your L5 program is to drag the folder containing your main.lua onto the Love2d application. But to see error messages and printing in the console you will want to run from an Integrated Development Environment (IDE) or command line. Here are platform-specific details:
4040

4141
### Linux
4242

@@ -103,23 +103,16 @@ and try it again.
103103

104104
### Windows
105105

106-
ZeroBrane Studio, Sublime Text, VS Code, Notepad++, and SciTE allow you to launch your program from within their code editors, though may take some special configuration.
106+
The easiest way to run your program is to drag the folder onto either love.exe or a shortcut to love.exe. Remember to drag the folder containing `main.lua`, and not `main.lua` itself.
107107

108-
Otherwise, the easiest way to run your program is to drag the folder onto either love.exe or a shortcut to love.exe. Remember to drag the folder containing `main.lua`, and not `main.lua` itself.
109-
110-
You can also launch the game from the command line:
108+
However, to see print messages and error output in the console (helpful when coding and debugging), you'll want to use an IDE or run from the command line. IDEs such as ZeroBrane Studio, Sublime Text, VS Code, Notepad++, and SciTE all support launching LÖVE programs (the underlying framework used by L5), though may require some configuration.
111109

110+
Alternatively, you can launch from the command line with the `--console` flag:
112111
```
113-
"C:\Program Files\LOVE\love.exe" "C:\games\mygame"
112+
"C:\Program Files\LOVE\love.exe" --console "C:\Users\<YourUsername>\Desktop\L5-starter"
114113
```
115114

116-
You can create a shortcut to do this; simply make a shortcut to love.exe, right-click on it and select "Properties", and then put the command line you want in the "Target" box for the shortcut.
117-
118-
On Windows, there is a special command-line option which will attach a console to the window, allowing you to see the result of print calls (equivalent to setting t.console=true in conf.lua or running lovec.exe.
119-
120-
```
121-
"C:\Program Files\LOVE\love.exe" --console
122-
```
115+
Replace `<YourUsername>` and `Desktop\L5-starter` with your actual username and the location of your program folder.
123116

124117
---
125118

0 commit comments

Comments
 (0)