Love2d: Simple compilation to executable

While having a look at LÖVE engine, I've noticed that described compilation method under Windows is not quite fast or fun (because of requiring you to open console and type\paste project-specific code). So I've grabbed my semi-existing Batch coding skills and made a better one:
copy /b love.exe+%1 "%~dpn1.exe"
How to use this:
  1. Create a file called 'compile.bat' in the same directory with Love2d runner.
  2. Paste above code into it.
  3. To compile a game, drag it's .love\.zip onto your compile.bat - an executable (compiled game) will appear next to it, named after game's file.
That's it. Couldn't be easier.

Related posts:

Leave a Reply to Anonymous Cancel 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.