1
WME Lite / Convert game by windows to android
« on: August 11, 2013, 05:12:50 PM »
Hello guys,
i tried demo.apk and worked fine.
I have little question. My wish is: convert my completed game on windows to android.
It is possible? Please can you give me steps for this?
I finded manual on wiki. But i have problem with point where i must copied dcp on folder assets => I do not have this folder.
BR
pirko7
i tried demo.apk and worked fine.
I have little question. My wish is: convert my completed game on windows to android.
It is possible? Please can you give me steps for this?
I finded manual on wiki. But i have problem with point where i must copied dcp on folder assets => I do not have this folder.
Quote
Building a game package from precompiled libraries
Note: Before starting, make sure you are capable of building an Android app using one of the examples from the Android SDK.
If not already done, install the SDK platform for Android 2.3.3 (API 10).
Obtain sources from Mercurial repository: https://bitbucket.org/MnemonicWME/wmelite
Download dependencies for Android (dep_android_*.zip): https://bitbucket.org/MnemonicWME/wmelite/downloads
Unpack dependencies into the wmelite/android folder.
Place your game files into the wmelite/android/assets/raw folder and rename them from ".dcp" to ".png". If you are going to distribute your game via the Google Play store, your game must not be bigger than 50 MB in total.
Change the package and class name of org/example/yourapppackagename/YourGameName.java located at wmelite/android/src/ into something meaningful for your game.
You need to change the AndroidManifest.xml as well, which is located at wmelite/android/, to reflect your changes. Edit package="org.libsdl.app" and android:name="SDLActivity" to match your changes.
Edit res/values/strings.xml located at wmelite/android/ to fill in the name of your app.
Modify the game package and file path to point at the asset directory. Edit org/deadcode/wmelite/WMELiteFunctions.java located at wmelite/android/ and change the return values of the getGamePackagePath() and getGameFilePath() from "/mnt/sdcard" to "asset://raw".
If you use bitmap fonts with a different locale than "US-ASCII", fill in the proper locale in the functions getEncodedString() and getUTFString().
Build the Android app.
BR
pirko7