Love2D with SublimeText in Mac OS X


I’m not often using SublimeText, but seems it’s very good for Love2D development. Here is my configuration, first we need to install SublimeText2 / 3 in our Mac OS X.

Then, we need to install SublimePackageManager (http://wbond.net/sublime_packages/package_control/installation).

Then here is the cure, add this github repo on Package Settings -> Install

1
https://github.com/minism/SublimeLove

Then we’re ready to development Love2D. Here is some tricks to solve the problem that might occurs.

Run love in command-line Mac OS X:

1
sudo ln -s /Applications/love.app/Contents/MacOS/love /usr/local/bin/

Run love in SublimeText, edit build (you can find-e via Browse Package -> SublimeLove -> Love.sublime-build

1
2
3
4
5
{
    "cmd": ["for depth in {0..0}; do if [ -f main.lua ]; then /usr/local/bin/love .; fi; done;"],
    "selector": "source.lua.love",
    "shell": true
}

That’s it!


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.