How do I create an online leaderboard with anonymous login?

0 favourites
  • 4 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • I've done numerous searches on the Scirra forums for leaderboard and highscore implementation, but I'm still not quite seeing what I need.

    Please forgive me if this has been covered before.

    I'm just looking for a way for my online game to have a basic leaderboard. Top 10, top 20, whatever.

    Problem is, for what I've seen, firebase, nugplay etc are all requiring the player to have to login or register.

    I just need a way for my players to just type in their name before the game starts, play the game, after the game so them their ranking.

    I've tried it with local storage, but it only seems to work on one computer. Say, I have an office full of co-workers playing my game on my server, I want them to be able to see their scores and everyones else's scores at the end of their games. All without having to register or login. Just type in their username.

    Is this possible? Again, sorry if I overlooked something.

  • sure its possible, here are the steps i would do:

    sql table



    • requests scores
    • submit scores


    • generates a unique id (for example a big random value) and saves it in local storrage at the first start
    • makes a ajax request to submit thi highscore (maybe automatically) api
    • makes a ajaxrequest to get the highscore to the php api

    I am sure there is an example somewhere. Look arround a little. also you can modify the login examples to your need and replace the login with the unique id.

    this way is not very secure but it will suit your needs.

    you could work with encryption to make it a little more secure (generation and transfer)

    kind regards

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Are there any third party services that can do that? I have hosting with Godaddy, but I'm not too versed with SQL or PHP. I'm sure I could get it working if I had instructions.

  • Idk but there is a very good tutorial on that topic: ... -php-mysql

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)