Created
November 30, 2017 07:44
-
-
Save novabyte/5e51912301a297c5a6dcdbe68a6fd5c2 to your computer and use it in GitHub Desktop.
An example of a leaderboard setup with Nakama server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local nk = require("nakama") | |
-- use any string as an ID | |
local id = "8c79b85e-d5a1-11e7-87cc-7bd5871ea4a4" | |
local reset = nil -- no reset | |
local metadata = { | |
} | |
nk.leaderboard_create(id, "desc", reset, metadata, false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment