Touchdevelop api api: leaderboard when you are supposed to be somewhere Disclaimer: This document is...

6
touchdevelop api api: leaderboar d when 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.

Transcript of Touchdevelop api api: leaderboard when you are supposed to be somewhere Disclaimer: This document is...

Page 1: Touchdevelop api api: leaderboard when you are supposed to be somewhere Disclaimer: This document is provided “as-is”. Information and views expressed.

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.

Page 2: Touchdevelop api api: leaderboard when you are supposed to be somewhere Disclaimer: This document is provided “as-is”. Information and views expressed.

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

Page 4: Touchdevelop api api: leaderboard when you are supposed to be somewhere Disclaimer: This document is provided “as-is”. Information and views expressed.

touchdevelop api

exampleso learn pi

☁ http://touchdevelop.com/ynnp o meeting-o-meter

☁ http://touchdevelop.com/xfcso bubble pop

☁ http://touchdevelop.com/rrpk

Page 5: Touchdevelop api api: leaderboard when you are supposed to be somewhere Disclaimer: This document is provided “as-is”. Information and views expressed.

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

Page 6: Touchdevelop api api: leaderboard when you are supposed to be somewhere Disclaimer: This document is provided “as-is”. Information and views expressed.

touchdevelop api

homework► count number of contacts on phone, and post as leaderboard score