[tool] LoveToAndroid - .love to .apk without thinking
Posted: Sat Jul 11, 2015 7:59 am
Update Aug 2nd, 2016: To put your game on Android, follow the instructions in the following video:
https://youtu.be/TAZo-pin4nE
Backups (public, no need for FB account) at https://www.facebook.com/love2Dengine/p ... 9545637201
You'll need Linux, Mac OS X or Windows and "Start Gamedev" from https://qubodup.itch.io/startgamedev
https://youtu.be/TAZo-pin4nE
Backups (public, no need for FB account) at https://www.facebook.com/love2Dengine/p ... 9545637201
You'll need Linux, Mac OS X or Windows and "Start Gamedev" from https://qubodup.itch.io/startgamedev
You have a game.love file and want to play it on Android? Okay. Do this:
1. Download and extract loveToAndroid for Windows, OSX or Linux: from https://archive.org/download/lovetoandroid .
2. Override the game.love in project root.
3. Run the make-apk script.
4. Copy the game.apk file to your phone and install it.
5. (optional) edit the lines starting with a 'sed' command in the make-apk script to find out how to change the app name. App ID might be more complicated. This package is mainly used for workshops where you want to install multiple results next to each other.
Old version quoted below because why not.1. Download and extract LoveToAndroid-v01.zip (107MB) from Mega, Mediafire or Box.net. If chrome blocks the download because it tries to protect naive uses, press Ctrl + J to open the download manager and check the links under the download, one of them allows you to get the file, against Chrome's better judgement. Alternative: http://superuser.com/questions/387724/
2. Open the folder. And your eyes. This is what you see: 3. Replace the game.love file with your game.love.
4. OPTIONAL replace icon.png with an 144x144 png image.
5. Start 2_love2apk.bat by clicking it and press a key when it asks you to, to close it.
6. Copy the game.apk file to your phone and install it.
Don't like text? Okay, watch this instead:
http://youtu.be/vfn1nTjPuOY
If you want more details, read the readme file and http://bitbucket.org/MartinFelis/love-android-sdl2/wiki or ask here.
This is for windows users who have trouble following the love-android-sdl2 instructions. And for workshops performed on 3rd party computers without admin rights (for example ESPWS).
Readme (v01):LoveToAndroid is a collection of tools to make it easy to port your LÖVE game to Android.
Steps:
1. Create zip with your game, rename to "game.love" in this folder
2. Start 2_love2apk.bat - this will create "game.apk"
3. Copy "game.apk" to your Android device and open it in the file browser to install
That is it.
OPTIONAL Steps:
4. Replace icon.png (144x144px png) and run 2_love2apk.bat again.
5. Edit tools\love-android-sdl2\AndroidManifest.xml to change name and other details
6. For your apk to have an own ID, not only edit AndroidManifest.xml but also adjust the folder/file names and file content of
tools\love-android-sdl2\src\love\
tools\love-android-sdl2\src\love\to\
tools\love-android-sdl2\src\love\to\android
tools\love-android-sdl2\src\love\to\android\LtaActivity.java
7. Oh yeah, you might want to create a backup of
tools\love-android-sdl2\
so you can use it for other projects
For more, for now, check love-android-sdl2 wiki for more info or ask in the love2d.org LoveToAndroid forum thread.
Background info:
tools\ant is from https://ant.apache.org/bindownload.cgi ; removed documentation, maybe more
tools\jdk is from http://www.oracle.com/technetwork/java/ ... 80260.html JDK, NOT JRE, NOT JAVA PLATFORM , openjdk didn't work; removed as much as I could without breaking ant debug
tools\android is downloaded with Android SDK Manager https://developer.android.com/sdk/index.html SDK TOOLS ONLY, NOT ANDROID STUDIO; removed as much as possible without breaking ant debug
tools\love-android-sdl2 from https://bitbucket.org/MartinFelis/love-android-sdl2 , self-compiled early 2015
CREDITS
Collected by Iwan Gabovitch http://qubodup.net . Check subdirectories for licenses and credits