Touchdevelop api api: leaderboard when you are supposed to be somewhere Disclaimer: This document is...
-
Upload
felix-bryant -
Category
Documents
-
view
212 -
download
0
Transcript of Touchdevelop api api: leaderboard when you are supposed to be somewhere Disclaimer: This document is...
touchdevelop api
api:leaderboardwhen you are supposed to be somewhere
Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and Windows Live are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners.
touchdevelop api
leaderboardo each script has a distinct
leaderboardo leaderboard is mapping of
user → numbero maintained in the cloud, user
identity of logged in usero conceptually,
all users start with score 0,and scores and only increase
o leaderboard lists are sorted by highest scores
touchdevelop api
apiso Bazaar→leaderboard score
Gets the current score for the current scripto Bazaar→post leaderboard score
Posts the current game score to the script leaderboard
o Bazaar→post leaderboard to wallPosts the current game leaderboard to the wall
touchdevelop api
exampleso learn pi
☁ http://touchdevelop.com/ynnp o meeting-o-meter
☁ http://touchdevelop.com/xfcso bubble pop
☁ http://touchdevelop.com/rrpk
touchdevelop api
exercises► write “increase my score” script:
action main var score = bazaar→leaderboard score bazaar→post leaderboard score(score + 1) bazaar→post leaderboard to wall
touchdevelop api
homework► count number of contacts on phone, and post as leaderboard score