Page 1 of 2
makeLÖVE - LÖVE2D project generator
Posted: Sun May 25, 2014 1:18 pm
by smoking bunny
hello all,
just wanted to share this latest creation i have made to simplify the creation of new LÖVE2D projects.
this uses the ultra cool alfred, with powerpack. so this is just for mac users, sorry.
all you do, is choose a folder to save to in the finder window, call up alfred, type in 'makelove' then give your project a name. and hey-presto, it create a brand new named project, with pre-programmed main.lua and conf.lua files, plus some blank folders for item storage.
here is a quick screencast to show exactly how it work
https://vimeo.com/96413339
but im going to build on this a little further as well. see how it goes
have phün
Re: makeLÖVE - LÖVE2D project generator
Posted: Sun May 25, 2014 6:47 pm
by Karai17
This is actually pretty neat! Any thoughts on a Windows or Linux version in the future?
Re: makeLÖVE - LÖVE2D project generator
Posted: Sun May 25, 2014 6:49 pm
by smoking bunny
cheers, it was a bitch to figure out at first. but then came away for a minute can then came up with the most basic, but straight forward way, which works. which is always handy
ill have a look. problem with alfred, is that its just mac only. i do know of other quick launchers, also free ones that are multiplatform, but they are crap in comparison in my experience. but i will look at making something for all platforms. why not
ill see which ones people prefer and if they can execute shell scripts from within
Re: makeLÖVE - LÖVE2D project generator
Posted: Sun May 25, 2014 9:49 pm
by CrackedP0t
After seeing this thread, I decided to make a shell script to do the same thing on Linux, which I use.
I just copied the stuff I saw in your video -- it's exactly identical.
To use, from a terminal:
Re: makeLÖVE - LÖVE2D project generator
Posted: Sun May 25, 2014 9:51 pm
by smoking bunny
aye, that cool. i think you can unzip my file and take the code, which is just a shell script.
thanks for sharing. i was thinking of doing that, but got caught doing other things
Re: makeLÖVE - LÖVE2D project generator
Posted: Mon May 26, 2014 4:11 am
by davisdude
Mine's a bit less user-friendly, but it's for Windows, so you'll just have to deal with it.
Usage:
1. Run makelove.bat
2. Enter the desired name of your project next to the prompt that says, "Project Name." This will be the name that is at the top of the window when you run the game.
3. Actually READ the instructions:
3.1. You can use "~" to step back a level. It defaults at the directory of the folder the .bat file is placed inside.
3.2. The ~'s must be at the start.
3.3. If you escape more times than there are \s, you lose.
3.4. Type in the name of the folder.
4. Indicate whether you're happy or not with the file directory. n if not, anything else if you're okay with it.
4.1. If "n", See step 3
4.2. If "y" (or anything else for that matter, except "n" then you're done! Double-click the play.bat to test out the file!
Please not that I did NOT include any libraries, for the sake of flexibility for all users. I tried to document it, though, so read the comments (:: lines). At the very bottom there is instructions for how to add new files.
See GitHub
https://github.com/davisdude/MakeLOVE/b ... keLOVE.bat
Re: makeLÖVE - LÖVE2D project generator
Posted: Mon May 26, 2014 2:06 pm
by Karai17
I wonder if there would be a way to write a love app that generates a love file ;D
Alternatively, a Sublime plugin?
Re: makeLÖVE - LÖVE2D project generator
Posted: Mon May 26, 2014 2:09 pm
by smoking bunny
i was just looking at the LÖVE for makeLÖVE
also sublime, since its awesome
did think that you could simply have the files already embedded in the LOVE application, then once started it pops up with 'where to save & name'
that was where i was thinking to go
Re: makeLÖVE - LÖVE2D project generator
Posted: Mon May 26, 2014 2:12 pm
by Karai17
Yeah, embed a project in the love file and use io.open to break out of love's sandbox to access the filesystem directly. Use a recursive function to dig through the project and pull out files, etc.
Re: makeLÖVE - LÖVE2D project generator
Posted: Mon May 26, 2014 2:15 pm
by smoking bunny
im thinking of making something like openFrameworks' projectGenerator. which is super awesome, you can add libraries/add-ons when making the file.
so that what im looking for in the end