Game Distribution (한국어)

.love 파일 만들기

.love 파일은 확장자만 .love인 zip 압축 파일입니다. 두가지 점에서 조심하셔야 합니다:

  • main.lua 파일은 반드시 최상위 경로에 있어야 합니다.
  • .love 파일 안에서 파일과 디렉토리 경로 이름은 대소문자를 구분해야 합니다. 파일 시스템이 대소문자를 구분하지 않는 윈도우와 맥 lovers에게 헷갈릴 수 있고, 압축을 풀었을때는 잘 동작하지만 패키징했을때 실행이 되지 않는 문제가 생길 수 있기 때문입니다.


이제 .love 파일을 만드는 방법을 설명합니다. (이 설명은 이 스레드에서 가져온 겁니다.):

Windows

  1. zip 파일을 만듭니다
    (윈도우 XP, 비스타, 7에 기본으로 내장되어 있지요.)
  2. 최상위 경로에 main.lua 파일이 있어야 함에 유의하면서 모든 파일과 디렉터리 구조를 zip 파일에다가 집어넣습니다.
    (zip 파일 안에 폴더가 있고 그 안에 파일들을 집어넣으면 동작하지 않아요.)
  3. .zip 파일을 .love 파일로 확장자를 교체합니다.
    기본적으로 파일 확장자가 숨겨져 있을 수 있습니다. 알트 버튼을 누른 뒤에, 폴더 옵션에 들어가셔서 "알려진 파일 형식의 확장명 숨기기"의 체크를 푸시면 zip 확장자를 바꿀 수 있어요.
  4.  ????
  5. 매년마다 수익이 흘러갑니다. (주 : 사실 저도 이게 무슨 뜻인지 모르겠습니다.)

Linux / OS X

커맨드 라인에서 해치웁시다:

  1. cd ~/Projects/EpicGame처럼 프로젝트 폴더로 이동합시다
  2. zip -r ../${PWD##*/}.love *라고 실행합니다
  3. 당신의 프로젝트 경로 바로 밖에 다 만들어진 .love 파일이 있을 겁니다.
  4. 참 쉽죠! (주 : 이것도 마찬가지, 무슨 뜻인지 모르겠어요.)

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:

  1. The end result will not be a single executable, you must also include some DLLs in your zip-file.
  2. 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.

There is a third-party tool to make this process easier called the Love2d Compiler by community member dizante.

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:

  1. First create a copy of the löve.app
  2. Right-click (Control+Click if you have one button) to bring up the contextual menu and select "Show Package Contents"
  3. 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