- 最后登录
- 2024-11-17
- 注册时间
- 2012-8-10
- 阅读权限
- 100
- 积分
- 74994
  
- 纳金币
- 59338
- 精华
- 28
|
pstatus"> 本帖最后由 艾西格亚 于 2013-8-22 23:01 编辑
![]()
You simply won't find an easier online leader boards system anywhere.
If you have the Simple Online Accounts Kit installed on your website then the Simple Online Leader Boards is a natural expansion and will take around 2 minutes to setup. If you do not have the Simple Online Accounts Kit installed then it will take you about 5 minutes to setup.
The Simple Online Leader Boards kit makes one assumption for it to work and that is that everybody who plays your game has a unique username that you want to use as their name on the leader boards. If that is the case then this system is exactly what you want.
Because this kit uses online elements, there are 2 requirements for it to work:
1.Your web host must allow you to***n PHP scripts
2.Your web host must allow you to create MySQL databases and tables
What you get:
1.Unity JavaScript code to submit your scores to the leader boards kit
2.Unity JavaScript code to show your top 20 entries
3.PHP code for your website to update your leader boards
4.PHP code to display the top 20 entries as formatted HTML for display on your website
5.A text file containing the SQL command to create your leader boards table
*Updated to version 1.2. Now also includes a high scores system
Now you can display the top ranking unique players or you can show the top scores earned wether it was by the same person or not
What you need to do:
1.Configure settings.php with your database login details *
2.Configure the leader boards.php "EntriesToShow". Optional. Defaults to 20.
3.Copy and paste the SQL command to create your table
4.Upload the scripts **
5.Add the leaderboards.js file to any object in your scene
6.Give the script the URL to your website
7.Either call SubmitScore(name, score) or GetScores()
|
|