Running Love2D from Sublime Text 2 on Windows
Update = For updated information on this topic you might want to check out the Love2D Wiki entry on Sublime Text.
It's fairly easy to execute your Love2D game from within Sublime Text 2. Here's how.
First, make sure that love is in your path variable.
- Open System Properties
- Go to advanced tab
- Open environment variables
- Select path under system variables
;<your\path\to\love>(e.g: C:\Program Files (x86)\LOVE)
- Restart your machine
Then all what's left is adding a new build system for LOVE.
- In Sublime Text 2, go to Tools -> Build System -> New Build System...
"cmd": ["love", "$file_path"]
- Save the file as
RunLovefrom Tools -> Build System
To see if this is working, go to your main.lua and hit CTRL + B. You can also use the built-in console to see the output of your game.