You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -40,7 +40,9 @@ After downloading, extract the ZIP and serve the folder with a local web server.
40
40
41
41
## Running your program
42
42
43
-
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:
43
+
The easiest way to run your L5 program is to drag the folder containing your main.lua onto the Love2d application. To be able to view the output of `print()` add the function `printToScreen()` to your setup() section of code.
44
+
45
+
Alternatively, you may want to code, test and run your programs from an Integrated Development Environment (IDE) or command line. Here are platform-specific details:
44
46
45
47
### Linux
46
48
@@ -50,7 +52,7 @@ In the Terminal, you can run `love path/to/main.lua`. Or if you are in the folde
50
52
51
53
### Mac
52
54
53
-
Drag and drop the folder holding L5.lua and your main.lua onto the Love application.
55
+
Drag and drop the folder holding L5.lua and your main.lua onto the Love application, being sure to add `printToScreen()` to your setup function to be able to see `print()` output.
54
56
55
57
OR
56
58
@@ -107,9 +109,11 @@ and try it again.
107
109
108
110
### Windows
109
111
110
-
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.
112
+
The easiest way to run your program is to drag the folder onto either love.exe or a shortcut to love.exe. You will want to add `printToScreen()` function within your setup to see the output of any `print()` commands. Remember to drag the folder containing `main.lua`, and not `main.lua` itself.
113
+
114
+
OR
111
115
112
-
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.
116
+
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.
113
117
114
118
Alternatively, you can launch from the command line with the `--console` flag:
0 commit comments