Coder Social home page Coder Social logo

cartergames / leaderboardmanager Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 4.73 MB

A free scalable local leaderboard system for Unity with the option to save a score as a number or time.

Home Page: https://carter.games/leaderboardmanager

License: MIT License

C# 100.00%
unity leaderboard leaderboards leaderboards-api arcade-leaderboard score scoreboard scoreboard-api scoreboards localstorage

leaderboardmanager's Introduction

LBM

Leaderboard Manager is a FREE local leaderboard system for Unity games.

Badges

CodeFactor GitHub all releases GitHub release (latest by date) GitHub repo size

Key Features

  • Easily create & update leaderboards with a name & score.
  • Support for multiple leaderboards.
  • Support for TextMeshProGUI.
  • Support for showing score as time.

How To Install

Either download and import the package from the releases section or the Unity Asset Store and use the package manager. Alternatively, download this repo and copy all files into your project.

Setup

The asset doesn’t need any setup by you to function. By default there are no leaderboards in the save data. The save will automatically create itself when you first create a leaderboard with the system. The leaderboard save goes to the users computer persistent datapath.

2.0.x save updating

You can port legacy data in editor and setup the porting. In older versions users could save time as a number, this has been updated into a custom class. If used it'll need to ported to a time entry board. The controls to this and the ability to view your current boards can be found under Tools/Carter Games/Leaderboard Manager/Leaderboard Editor An example setup to port a leaderboard called "Arcade" to a score leaderboard.

lbm-legacyport-runtime-01

Basic API Usage

Create a leaderboard called "MyBoard"

LeaderboardManager.CreateLeaderboard("MyBoard", LeaderboardType.Score);

Get leaderboard data for the board called "MyBoard"

var data = LeaderboardManager.GetLeaderboard("MyBoard");

Add entry to board called "MyBoard" for a player called "John" with a score of 100

LeaderboardManager.AddEntryToBoard("MyBoard", new LeaderboardEntryScore("John", 100));

Remove entry from board called "MyBoard" for a player called "John" of a score of 100

LeaderboardManager.DeleteEntryFromBoard("MyBoard", new LeaderboardEntryScore("John", 100));

Save all leaderboards

LeaderboardManager.Save();

Load all leaderboards

LeaderboardManager.Load();

Documentation

You can access a online of the documentation here: Online Documentation. A offline copy if provided with the package and asset if needed.

Authors

Licence

MIT Licence

leaderboardmanager's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.