If you’re working in Terminal on your Mac, you need to know the most important UNIX commands: those that work with directories, those that work with files, and miscellaneous but commonly used commands. Folders are called directories in UNIX. Commands that refer to filenames, as most do, assume that you’re talking about files in the. Click the Finder logo, located in the bottom toolbar of your screen (it looks like a two-toned smiling face). On the left toolbar, click 'Applications' (if that was the last folder you. Using a Terminal Emulator program (Mac OS X, UNIX/Linux,.BSD) Open the Terminal Emulator program, and at the command prompt enter the following command, making sure to substitute the IP address of your Virtual Machine for IPADDRESS: ssh user@IPADDRESS. This example uses Terminal.app on Mac OS X, but the command should be the same on any.
Once you have completed your game you surely want to make it available to others. In general you should first create a .love-file which can be either directly distributed (which requires users to have LÖVE installed) or used for platform specific packages.
These are the preferred ways to distribute your game depending on target (all make use of the .love file):
Create a .love-file
Please note that some operating systems use case-sensitive paths. To avoid unnecessary hassle make sure that the path specifications you use in code matches that of your folders and files.
To create a .love-file you have to create a zip file of the whole game directory. Make sure that your main.lua is in the root of the archive, e.g. if you have
then you must ensure the zip file contains
and not the directory SuperGame.
Once you have your zip file you simply rename the ending from .zip to .love and you are done! Calendar 5 mac apps.
If you're using a case-insensitive file system (e.g. Windows), it's advisable to move the .love file to some place other than the folder where your game is, and test again. This will reveal any case sensitivity problems that other users may run into when trying to run your game. If it's run in the same folder, it will find there the files that it can't find in the .love file, so you have to move it before testing. A good place to move it is a folder within your game directory, e.g.
love/MyGame.love .
Platform Specific NotesWindows
Windows supports creation of zip files out of the box via right-click menu. For detailed instructions see Compress and uncompress files (zip files).
macOS
Inside the game folder, select the game files and folders, right-click/Ctrl+click and pick Compress n items. Then rename the resulting
.zip file to have a .love ending.
Alternatively, you can use the terminal. Navigate inside the game folder and run:
Linux
Assuming your current directory is SuperGame/ you can create the .love file from command line directly using
Creating a Windows Executable
Once you have packed your game into a .love file you can create a game executable that directly runs your game.
For this you have to append your .love file to the love.exe file that comes with the official LÖVE .zip file. The resulting file is your game executable.
Once you have your game executable you can pack it together with all the other DLL files of the official LÖVE .zip file into a new .zip file and share this with the world.
Note: Some people do not have a 64-bit version of Windows, so it is a good idea to either distribute both 32- and 64-bit versions of your game, or only distribute a 32-bit version.
Platform Specific InstructionsWindows
To create your game executable under windows use the command line to run
Note: You may have to run the command as an administrator on your computer. You can do this by going to WindowsSystem32 and right clicking on cmd.exe and selecting the option Run as administrator. After this, you must type cd C:Program FilesLOVE (or whatever your default love directory is), then you may continue as normal.
Alternatively you can create a .bat (e.g. create_game_exe.bat) file with the contents
![]()
and then you can simply drag your SuperGame.love file onto the .bat file and it will create the file SuperGame.love.exe which you could then use for distribution. Mac app store 下载不了.
If you are using PowerShell instead of cmd, then the command used is a little bit different:
This method creates a fused game.
Windows icon
You can use your own icon images using tools like for example the freeware Resource Hacker.
Video tutorial and step-by-step instructions are available.
Linux / OS X
You can create the windows executable from Linux and OS X using the command line.
First download the official zipped 32 or 64 bit executable (not the installer) from https://www.love2d.org/. 32 bit games can run on 64bit Windows systems but not vice versa, so to save time on smaller games, you can provide 32bit only.
Then in the command line/terminal run
to obtain the game executable SuperGame.exe.
When distributing the windows executable you will need to include the dll files that came in the folder of the love.exe you used (so don't mix the 32 bit dll's with the 64 bit dll's). Without these files you will get error message when attempting to run SuperGame.exe on a windows machine.
The contents of your final distribution folder should look something like this:
Creating a macOS Application
For official/commercial distribution (e.g., in the Mac App Store) skip to the next section, Official Distribution and the App Store.
Once you have your game prepared as .love file you can make your game available for macOS users by following the steps below (video tutorial available):
When modifying SuperGame.app/Contents/Info.plist make sure to change the string values of the following XML-tags:
and remove the section UTExportedTypeDeclarations which ensures that macOS does not associate all .love files with your app. Overall the changes should be something like this:
Official Distribution and the App Store
Compiling Mac apps requires a Mac running macOS with XCode installed (you can install XCode from the app store).
Distribution for Linux
For Linux there is not yet a simple way to distribute your game. The general approach here is to point to the official LÖVE packages at https://www.love2d.org. Once the package is installed, the .love packages are usually automatically executed using the installed LÖVE package or using the command line:
Make sure to include a
conf.lua file with at least the LÖVE version used.
A common mistake is trying to fuse the love Linux binary with a love file:
Please keep in mind, while the binary `SuperGame` will run on your machine, and other Linux distros that have the same architecture and similar version libraries, there's a good chance that it will not run on many other Linux distros.
Linux
It has not been yet proven to work in all scenarios, but this a way of distributing your game for Linux.
Debian
There is a policy for including LÖVE games in the Debian archive. It can be followed to create a package for a game even if it is not intended to include it in the archive.
AppImages
The AppImage format is a format for packaging applications in a way that allows them to run on a variety of different target systems (base operating systems, distributions) without further modification. The whole kit can be downloaded from here.
In order to package games using AppImage, the libraries and dependencies required by love need to be gathered, which can be done easily using CARE (available packaged in the Ubuntu repositories) by executing:
.
This program makes an archive, which contains the love executable and its dependencies and related files kept in the way of your system.Secondly, the game's .love file needs to be 'fused' by the means shown in the above section. Now, the files need to be placed in the following way in a new directory:
Finally, the directory needs to be converted into an AppImage, using AppImageAssistant available in the kit.More information can be found in the AppImage documentation.
![]() AndroidCompiling from source
Firstly clone the android LÖVE project:
Then, download the Android SDK (API 28) and NDK. For the NDK, r16 and later is known to work. Older version is untested.
Set these environment variables
How To Make 2d Apps On Mac Using Terminal Space
Put the game (game.love) in the directory (project)/app/src/main/assets (if this directory don't exist create it).
For Linux or macOS systems it may be necessary set the executable permission:
And finally to generate the apk, do:
The apk will be in (project)/app/build/outputs/apk/
For more information see the Android wiki.
Using APKTool
Please see Game Distribution/APKTool for more information.
iOS
Basic instructions for iOS (without fusing) are available at Getting_Started#iOS.
To fuse your game into the LÖVE engine:
If you can't find the relevant XCode UI elements, you can refer to video tutorial on YouTube.
How To Make 2d Apps On Mac Using Terminal CommandsDistribution on the web
Publishing as a HTML5 or JavaScript game is possible thanks to TannerRogalsky/love.js. Threads for example are not supported though and playback of course depends on the browser.
A more modern fork of the above project is maintained at Davidobot/love.js and supports LÖVE v11.3.
Community Tools
There are a few tools developed by the community to help with game distribution.
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 How To Make 2d Apps On Mac Using Terminal Commands
Retrieved from 'https://love2d.org/w/index.php?title=Game_Distribution&oldid=25535'
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |