Difference between revisions of "Game Distribution"
(Noting the fused games bug in 0.7.1) |
(Dropped 'fused games not working' notice) |
||
Line 25: | Line 25: | ||
== Making an executable file out of a .love-file == | == Making an executable file out of a .love-file == | ||
− | |||
Many people are (understandably) concerned about what end-users need to do in order to run a LÖVE-game. If users receive a .love-file alone, they will naturally need LÖVE installed (or at least unzipped) in order to run it. But, as of LÖVE 0.5.0, you can merge the .love file with the love executable. | Many people are (understandably) concerned about what end-users need to do in order to run a LÖVE-game. If users receive a .love-file alone, they will naturally need LÖVE installed (or at least unzipped) in order to run it. But, as of LÖVE 0.5.0, you can merge the .love file with the love executable. |
Revision as of 20:54, 8 May 2011
Contents
Making a .love-file
A .love-file is a zip archive with .love as extension. Two caveats:
- The main.lua file must be at the root of the archive.
- In the .love, the file and directory path names are case sensitive. This can be puzzling for Windows and Mac OS X lovers, whose filesystem is case insensitive, and whose games may work when unzipped but not when packaged.
Here's how to proceed to generate a working .love file (info plundered from this thread):
Windows
- Create a zip file
(this is built into XP, Vista and 7) - Copy all of your files into the zip file, retaining directory structure and making sure that the main.lua file is in the root directory
(if you make a zip file containing a folder with your stuff in it, then it's not going to work) - Rename the file extension from .zip to .love
By default, file extensions may be hidden. You need to (press alt), go to folder options and uncheck "Hide extensions for known file types" to be able to rename the zip. - ????
- Annual revenue stream
Linux / OS X
From the command line:
- Go to your project directory a la cd ~/Projects/EpicGame
- Run zip -r ../${PWD##*/}.love *
- Your fully-prepared .love file shall be located right outside of your project directory
- Cake!
Making an executable file out of a .love-file
Many people are (understandably) concerned about what end-users need to do in order to run a LÖVE-game. If users receive a .love-file alone, they will naturally need LÖVE installed (or at least unzipped) in order to run it. But, as of LÖVE 0.5.0, you can merge the .love file with the love executable.
In general, it's recommended to offer a .love for download, and optionally "merged" versions for the platforms where this makes things simpler.
Two things should be noted:
- The end result will not be a single executable, you must also include some DLLs in your zip-file.
- The resulting executable from the merge will still be readable by archiving software, such as WinZip.
Windows
Here's how to do it on Windows. In a console, type this:
copy /b love.exe+game.love game.exe
Then, all you have to do is zip game.exe and required DLLs, and distribute them. Yes; this does mean that the game will have a private copy of LÖVE, but there's nothing wrong with that. It also means that you will have to create one package for each platform you would like to support, or simply offer the .love alone for the other platforms.
Linux
On Linux, it's similar:
cat love game.love > game
Then, you'll have to make a package for various packaging systems with dependencies as the love package. Were you to make a .deb package this way, for instance, the user would not have to install the love package separately.
Eventually, we will provide scripts which do this automatically for various package systems. You'll have to figure it out yourself until then.
Mac OS X
As of 0.6.1, it is now easier to create ready-to-distribute stand-alone Love games by following these steps:
- First create a copy of the löve.app
- Right-click (Control+Click if you have one button) to bring up the contextual menu and select "Show Package Contents"
- Navigate to Contents/Resources/. There should be two .icns files in there. Copy your already prepared .love file into Resources.
That's all you need to do to make an executable OS X Love game. Follow the next few steps if you wish to make it more your own... If you notice when you launch the game, the Dock icon is still the default löve icon and the title is "love". If you wish to change this, all you need is a small amount of computer knowledge and the right tools. A text editor, or the OS X Property List Editor.app which comes with the Developers tools on the install disc. You can use either, but the PLE is easier to understand. The file you need to modify is the info.plist file located in the Contents folder. Once opened in PLE, you will see a list of "properties". You only need to change a couple: (Make sure to double-click the "Value" column and not the "Key".
- Bundle identifier - Make this something like com.yourcompany.whatever
- Bundle name - Changes the title in the Dock
- Bundle OS Type code
- Bundle creator OS Type code - Make these unique so .love files don't open with your game
- Icon file - Optionally if you wish to make your icon a different file name. You could just replace the icon itself if you wanted to without renaming it though
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info