[Plugin] Local Leaderboards

Post your completed addons to share with the community

Post » Sat Jun 29, 2013 2:44 pm

Hi, I couldn't find a nice and clean way to handle local leaderboards so I wrote my own plugin.

Handles multiple leaderboards even in the same event sheet, one condition with one action is all it takes to display the leaderboard.

Doesn't use jQuery or any other library, fully compatible with domless wrappers. Uses Local Storage.

Please refer to the included demo.

GITHUB REPOSITORY (Commits welcome).

Tested and currently used in this game.

Enjoy.0plus12013-06-30 01:54:44
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Wed Jul 03, 2013 9:37 am

@0plus1 This is great, just what I needed! :)
B
8
S
2
G
4
Posts: 64
Reputation: 3,199

Post » Wed Jul 03, 2013 4:09 pm

@0plus1 awesome, thank you again! ;D
B
38
S
8
G
3
Posts: 439
Reputation: 6,876

Post » Wed Jul 03, 2013 5:30 pm

Im trying to also store the name of the player with the score, if Im sucessful Ill commit later ;]

Damn, I cant figure out how to store the name inside the array, any ideas on how to do that?sheepy2013-07-03 20:32:14
B
38
S
8
G
3
Posts: 439
Reputation: 6,876

Post » Thu Jul 04, 2013 1:09 am

@sheepy adding the name is a bit challenging, I'm not storing comma separated values, to add a name you need json.
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Thu Jul 04, 2013 3:14 pm

I did it in a very gimmicky way, its not pretty but you can see the name after the score ;D

Im not going to commit to git because its really not the correct way this should be done, heheh, but heres the updated plugin:

https://dl.dropboxusercontent.com/u/6813637/0plus1_LL_with_names.zip
B
38
S
8
G
3
Posts: 439
Reputation: 6,876

Post » Tue Oct 13, 2015 11:37 am

Just was looking exactly for this thing. Stock using of local storage for this thing is done very dumb. Possible I am dumb, but I faced problems that shouldn't be.
B
9
S
1
Posts: 63
Reputation: 857

Post » Thu Dec 22, 2016 2:22 am

Can anyone make this plugin can set Ascending and Descending leaderboard options?
~Everyone can make GAMEs~
B
42
S
9
Posts: 396
Reputation: 4,725


Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests