readme
This commit is contained in:
parent
0e6f67a575
commit
717f8f9097
1 changed files with 8 additions and 0 deletions
|
@ -49,12 +49,14 @@
|
|||
gomobile build -target=android github.com/rootVIII/skulls/skullsgomobile
|
||||
|
||||
|
||||
|
||||
// 2. Install the newly created .apk into an already running Android Emulator:
|
||||
adb -s <emulator-name> install skullsgomobile.apk
|
||||
// Note: to list available emulators (including phone connected for debugging):
|
||||
adb devices -l
|
||||
|
||||
|
||||
|
||||
// 3. View debug/logging output from the game:
|
||||
adb logcat
|
||||
</code>
|
||||
|
@ -69,9 +71,11 @@ adb logcat
|
|||
ebitenmobile bind -target android -javapkg com.<your-username>.skulls -o skulls.aar github.com/rootVIII/skulls/skullsebitenbind
|
||||
|
||||
|
||||
|
||||
// 2. Open an Empty Activity in Android Studio and name it SkullsMobile
|
||||
|
||||
|
||||
|
||||
// 3. Import the new .aar as a module:
|
||||
// Select File, New, New Module, Import .jar/.aar Package, select the previously built .aar named skulls.aar
|
||||
// In app/build.gradle, add this line to the dependencies: compile project(':skulls')
|
||||
|
@ -89,6 +93,7 @@ dependencies {
|
|||
// Then follow screen prompts to sync the build.gradle change to the project
|
||||
|
||||
|
||||
|
||||
// 4. Place the following in app/src/main/java/com.<your username>.skullsmobile/MainActivity.java:
|
||||
|
||||
package com.<your-username>.skullsmobile;
|
||||
|
@ -128,6 +133,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
}
|
||||
|
||||
|
||||
|
||||
// 5. Add a separate error handling class in app/src/main/java/com.<your-username>skullsmobile/EbitenViewWithErrorHandling.java
|
||||
|
||||
package com.solsticenet.skullsmobile;
|
||||
|
@ -156,6 +162,7 @@ class EbitenViewWithErrorHandling extends EbitenView {
|
|||
}
|
||||
|
||||
|
||||
|
||||
// 6. Add the below into app/src/main/res/AndroidManifest.xml:
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
|
@ -175,6 +182,7 @@ class EbitenViewWithErrorHandling extends EbitenView {
|
|||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
// 7. The game should now be usable in Android Studio (sign the project with developer keys, UI adjustments in AndroidManifest.xml etc.)
|
||||
</code>
|
||||
</pre>
|
||||
|
|
Loading…
Add table
Reference in a new issue