From 6614498744a45138adc770ef6e5882366b96b25e Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 18 Mar 2013 08:36:56 +1300 Subject: Update styling, GameCenter highscore tutorial. --- doc-src/tutorials/gamecenter.html | 73 ++++++++++++++++++++++++--------------- 1 file changed, 45 insertions(+), 28 deletions(-) (limited to 'doc-src/tutorials') diff --git a/doc-src/tutorials/gamecenter.html b/doc-src/tutorials/gamecenter.html index bf398cd1..f8ddb666 100644 --- a/doc-src/tutorials/gamecenter.html +++ b/doc-src/tutorials/gamecenter.html @@ -39,14 +39,21 @@ The contents of the submission are particularly interesting: - - category - SMW_Adv_USA1 - score-value - 55 - timestamp - 1301553284461 - + + scores + + + category + SMW_Adv_USA1 + context + 0 + score-value + 0 + timestamp + 1363515361321 + + + @@ -66,14 +73,21 @@ now fire up. Lets bump the score up to something a bit more ambitious: - - category - SMW_Adv_USA1 - score-value - 2200272667 - timestamp - 1301553284461 - + + scores + + + category + SMW_Adv_USA1 + context + 0 + score-value + 2200272667 + timestamp + 1363515361321 + + + @@ -91,15 +105,18 @@ replay. And that's it - according to the records, I am the greatest Super Mega Worm player of all time. -Curiously, the top competitors' scores are all the same: 2,147,483,647. If you -think that number seems familiar, you're right: it's 2^31-1, the maximum value -you can fit into a signed 32-bit int. Now let me tell you another peculiar -thing about Super Mega Worm - at the end of every game, it submits your highest -previous score to the Game Center, not your current score. This means that it -stores your highscore somewhere, and I'm guessing that it reads that stored -score back into a signed integer. So, if you _were_ to cheat by the relatively -pedestrian means of modifying the saved score on your jailbroken phone, then -2^31-1 might well be the maximum score you could get. Then again, if the game -itself stores its score in a signed 32-bit int, you could get the same score -through perfect play, effectively beating the game. So, which is it in this -case? I'll leave that for you to decide. +There's a curious addendum to this tale. When I first wrote this tutorial, all +the top competitors' scores were the same: 2,147,483,647 (this is no longer the +case, beacause there are now so many fellow cheaters using this tutorial). If +you think that number seems familiar, you're right: it's 2^31-1, the maximum +value you can fit into a signed 32-bit int. Now let me tell you another +peculiar thing about Super Mega Worm - at the end of every game, it submits +your highest previous score to the Game Center, not your current score. This +means that it stores your highscore somewhere, and I'm guessing that it reads +that stored score back into a signed integer. So, if you _were_ to cheat by the +relatively pedestrian means of modifying the saved score on your jailbroken +phone, then 2^31-1 might well be the maximum score you could get. Then again, +if the game itself stores its score in a signed 32-bit int, you could get the +same score through perfect play, effectively beating the game. So, which is it +in this case? I'll leave that for you to decide. + -- cgit v1.2.3