This sample implements a simple Charades game using immersions. When started, the game first displays a splash screen from which the user can start a new game or view the instructions.
Once the game itself begins, ten phrases are randomly selected and one is displayed to the wearer. He or she is expected to act out the phrase, and then tap if the other players correctly guess the phrase or swipe forward to pass on that phrase and come back to it later (time permitting).
When all the phrases are guessed correctly or time has run out, a
CardScrollView
will appear that displays the results of the game. The
wearer can now tap to open a menu containing a "New game" option, or swipe
down to leave the game.
Check out our documentation to learn how to get started on https://developers.google.com/glass/gdk/index
You can use your IDE to compile and install the sample or use
adb
on the command line:
$ adb install -r Charades.apk
To start the sample, say "ok glass, play a game" from the Glass clock screen or use the touch menu.
-
John Stracke for "triumph.ogg", adapted from "Short_triumphal_fanfare.wav" at http://soundbible.com/1823-Winning-Triumphal-Fanfare.html
-
Joe Lamb for "sad_trombone.ogg", adapted from "Sad_Trombone.wav" at http://soundbible.com/1830-Sad-Trombone.html