Join Lee Brimelow for an in-depth discussion in this video Implementing an achievement, part of Developing Applications for Amazon Kindle Devices.
So, now that we've implemented our leader boards, let's turn our attention to the …achievements. Now, remember we defined one achievement …for our game and that's when the user reaches over $1000. …So, we're going to start in game.java. And what we need to do is to create a …function. And I'm going to call it Check …Achievements. And essentially, anytime the score is …updated in the game I'm going to call this method to see if they have actually …achieved that achievement. And if they have, then I'm actually going …to call out to the achievement client that we created and set the achievement …for the user. So, I'm just going to come under on …create here. And I'm going to say, private void …checkachievements. The first thing I'm going to do in this …function is to check whether the score is greater than or equal to 1,000.…
If it is, then obviously, I'm going to give them that achievement. …So, I'm going to say, if(score >= 1000). Now, to actually submit the achievement …to these achievement client, we'll first going to go to that client. …
The course also covers multiscreen development and testing with the Kindle Emulator, as well as actual deployment to the Kindle store.
Skill Level Intermediate
1. Preparing for Development
2. Integrating In-App Purchasing
3. Using the GameCircle API
4. Using the Amazon Maps API
5. Multiscreen Development
6. Preparing to Publish
Targeting other devices6m 51s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.