Documentation ¶
Overview ¶
An app that demonstrates the sprite package.
Note: This demo is an early preview of Go 1.5. In order to build this program as an Android APK using the gomobile tool.
See http://godoc.org/golang.org/x/mobile/cmd/gomobile to install gomobile.
Get the sprite example and use gomobile to build or install it on your device.
$ go get -d golang.org/x/mobile/example/sprite $ gomobile build golang.org/x/mobile/example/sprite # will build an APK # plug your Android device to your computer or start an Android emulator. # if you have adb installed on your machine, use gomobile install to # build and deploy the APK to an Android target. $ gomobile install golang.org/x/mobile/example/sprite
Switch to your device or emulator to start the Basic application from the launcher. You can also run the application on your desktop by running the command below. (Note: It currently doesn't work on Windows.)
$ go install golang.org/x/mobile/example/sprite && sprite
Click to show internal directories.
Click to hide internal directories.