Posted by Alice Ching, Google Engineer
We are pleased to announce the release of Games in Motion, an open source game sample to demonstrate how developers can make fun games using Google Fit and Android Wear. Do you ever go on a jog and feel like there is a lack of incentive to help you run better? What if you were a secret agent and had to use your speed and your nifty gadget to complete missions?
With Games in Motion, you can enhance your exercise with missions and actions on your Android Wear device, while logging your jogs to the cloud.
Games in Motion is written in Java programming language using Android Studio. It demonstrates multiple Android technologies.
- Android Wear bridges notifications from a phone or tablet to a paired Android Wear device. The notifications are stacked so we can show multiple stats at the same time.
- Google Fit API collects and processes fitness data and sessions. This allows us to use the fitness data to show user progress. All exercise sessions done in Games in Motion will be recorded to Google Fit as well.
- Google Play Games Services is used to create and unlock achievements.
- Several different Android audio APIs are integrated.
- Android Audio Manager is used for volume and vibration control.
- Android Media Player plays back raw sound files.
- Android Text to Speech generates in-game spoken speech.
- Audio Focus is used to make sure we transition smoothly between in-app audio and audio from other apps, such as music-playing apps.
- JUnit tests are present for the data-driven parser, which demonstrates how unit testing can be done within Android Studio.
You can download the latest open source release from GitHub. We hope to inspire similar Android games, where multiple different form factors are combined for a fun experience.
Android Developers Blog