o2wlmw
Last Updated: February 25, 2016
·
1.598K
· navarro

SublimeText Build System for Love2D

For those using Love2D as game engine and SublimeText2 as IDE this *.sublime-build can come handy if you want to rapidly generate *.love file for testing.

{
"cmd": ["zip -9 -r --exclude=.love game.love .; ls"],
"selector": "source.lua.love",
"shell": true
}

This will generate a game.love inside your current folder excluding the .love files itself, also will show on SublimeText shell the output of the command.

By the way, if you want to run it in sequence just use as described bellow

{
"cmd": ["zip -9 -r --exclude=.love game.love .; ls; /Applications/love.app/Contents/MacOS/love game.love"],
"selector": "source.lua.love",
"shell": true
}

CMD receives a string used in terminal so using:
/pathToLoveExecutable name.love;
Will call the love executable as you would do in Terminal.

Say Thanks
Respond

1 Response
Add your response

9014
0 tw3khva4jot9bv4o3o 7hzxzxe5zl9hoidzfhmpe87lxvt0edsayqjeqlxliqad68eimfogauyih

Nice job, man. I really like Sublime Text and Love2D and this is very useful for the people who use them too.

Also, an easy option can be:
{
"cmd": ["love","$file_path"]
}

over 1 year ago ·