Spooky House Studios: Game development for smartwatches. Challenges and solutions

13
Android Wear game Android Wear game development development nuances nuances Alexei Ceban Alexei Ceban

Transcript of Spooky House Studios: Game development for smartwatches. Challenges and solutions

Page 1: Spooky House Studios: Game development for smartwatches. Challenges and solutions

Android Wear game Android Wear game development development nuancesnuances

Alexei CebanAlexei Ceban

Page 2: Spooky House Studios: Game development for smartwatches. Challenges and solutions

● Android Wear requirements● Android Wear specifics ● Build Tools

● Crystax NDK instead of standard NDK● Eclipse + ADT● Python script + prebuild.cfg

● Detecting screen shape● Running game: How to quit?● Setup Eclipse for Android Wear development

Android Wear developmentAndroid Wear development

Page 3: Spooky House Studios: Game development for smartwatches. Challenges and solutions

Update your SDK with Android 4.4W.2 (API 20) or higher The updated platform version provides new APIs for wearable apps.

Update your SDK tools to version 23.0.0 or higher The updated SDK tools enable you to build and test wearable apps.

Android Wear RequirementsAndroid Wear Requirements

Page 4: Spooky House Studios: Game development for smartwatches. Challenges and solutions

● Ads● Internet access● IAPs

● android.webkit● android.appwidget● android.hardware.usb● android.print● android.app.backup

Android Wear SpecificsAndroid Wear Specifics

Not available APIs:No direct implementation:

They decided that You don't need sounds & music

The Wearable Data Layer API, which is part of Google Play services, provides a communication channel for your handheld and wearable apps.

http://developer.android.com/training/wearables/data-layer/index.html

Page 5: Spooky House Studios: Game development for smartwatches. Challenges and solutions

Crystax NDK instead Crystax NDK instead ofof standardstandard NDK NDK

https://www.crystax.net/en/android/ndk

«...has been developed as a drop-in replacement for Google's Android NDK (Native Development Kit). Compared to Google's NDK, the CrystaX NDK provides the same functionality as well as several great features and tons of fixes and improvements.

The main goal of the CrystaX NDK is to allow Android developers to produce standard conformant code and thus make Android native development more efficient. ...»

Page 6: Spooky House Studios: Game development for smartwatches. Challenges and solutions

EclipseEclipse + ADT + ADT

● Why not Android Studio?● Package Manually

VSVS

Page 7: Spooky House Studios: Game development for smartwatches. Challenges and solutions

Package ManuallyPackage Manually

We need two identically signedidentically signed packages: wear gamewear game & containercontainer

Page 8: Spooky House Studios: Game development for smartwatches. Challenges and solutions

Package ManuallyPackage Manually

Signed wearable game package

Same package name & version

Page 9: Spooky House Studios: Game development for smartwatches. Challenges and solutions

Python Python scriptscript + prebuild.cfg + prebuild.cfg

You can find tutorial here:https://www.dropbox.com/s/hkozv3788jqwju5/Project_build_config.odp?dl=0

Page 10: Spooky House Studios: Game development for smartwatches. Challenges and solutions

Detecting screen shapeDetecting screen shape

https://www.dropbox.com/s/obkzbhvzx6bz0d2/Detect_screen_shape.odp?dl=0You can find tutorial here:

Page 11: Spooky House Studios: Game development for smartwatches. Challenges and solutions

Running game: How to quit?Running game: How to quit?

VSVS

No swipes in the game Game with swipe controls

https://www.dropbox.com/s/d9xyfrl8d4by1rj/Quit_Game_Procedure_Config.odp?dl=0You can find tutorial here:

Page 12: Spooky House Studios: Game development for smartwatches. Challenges and solutions

Setup EclipseSetup Eclipse forfor Android Wear Android Wear developmentdevelopment

You can find tutorial here:https://www.dropbox.com/s/8hrbsik603rlyhb/Setup_Eclipse_for_Android_Wear.odp?dl=0

Page 13: Spooky House Studios: Game development for smartwatches. Challenges and solutions

thank youthank you

Questions?

спасибоспасибо