Adding Score Posting to UFOs

There are two obvious ways that we can score in our UFOs game. First, we could implement a system that counted how many cows were abducted and submit that as the score. Although this approach is the easiest to implement for us, it is not a very fun gameplay technique, because there is no logical point at which the game ends. The second, high-score method is harder to implement, but makes more sense. It clocks how long the user took to abduct ten cows; the user with the lowest time is the winner.

These are topics that must be carefully considered for your own app. For the purpose of this book, we will demonstrate the first method in which the number of cows abducted is the user's score. If you were going to implement ...

Get Beginning iOS Game Center and Game Kit: For iPhone, iPad, and iPod touch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.