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

Post on 22-Jul-2015

37 views 0 download

Tags:

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

Android Wear game Android Wear game development development nuancesnuances

Alexei CebanAlexei Ceban

● 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

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

● 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

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. ...»

EclipseEclipse + ADT + ADT

● Why not Android Studio?● Package Manually

VSVS

Package ManuallyPackage Manually

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

Package ManuallyPackage Manually

Signed wearable game package

Same package name & version

Python Python scriptscript + prebuild.cfg + prebuild.cfg

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

Detecting screen shapeDetecting screen shape

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

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:

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

thank youthank you

Questions?

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