Skip to content

SNS Components tutorial

ChenLin edited this page Sep 16, 2015 · 2 revisions

1. 使用TangIDE的排行榜组件

引入SDK


放置排行榜组件

    1. 在TangIDE左侧面板找到排行榜组件拖入场景区域
    1. 默认使用总排行榜即可

保存分数

GameSDK.getInstance().saveScore((Math.random*(100 - 1) + 1), function(ret) {
    console.debug('saveScore return:', JSON.stringify(ret)); 
});

live demo http://www.i5r.com.cn/apprun-wechatoSjbMs7GPu-gH9dZ4tsoo52y4gmo%7C21442379386433.html

Clone this wiki locally