Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Does Online Leaderboard Work on Your Browser/Internet?

A topic by Roaming Maelstrom created Jul 26, 2023 Views: 185 Replies: 5
Viewing posts 1 to 3
(3 edits)

Hey,

Game Description

Just released a Post-Jam update for the PC Browser Game "Destroy the Earth", made in the 48hr GMTK 2023 GameJam. Destroy the Earth is a strategy game where your goal is to raise your income, upgrade your fleet, and then destroy the Earth before the time runs out.


The Feature

One of the main features I added as part of the update was an Online Leaderboard for people who Destroy the Earth in the shortest amount of time. 


The Issue

I'm concerned about is whether it loads on all Browsers/internet speeds. I know that some people have to close/re-open the Leaderboard screen to get it to work, but does it work on all browsers and internets? 

Please could you a) Check whether the Leaderboard Screen Loads on your Device and b) Play the game and see whether your highscore is properly displayed on the Leaderboard (assuming you beat the game quickly enough).

Thank you for your support!

Roaming Maelstrom

Additional Game Link


Game Screenshots below



What the Leaderboard should Look like.



What the Game Looks Like.

(+1)

It says "Leaderboard service currently not available" when I click on it immediately for the first time after reloading the game. But if I reload the game, and wait for a little while and then click it, it works fine. I am guessing there is some async call when you get to the main menu that fetches the leaderboard, and the leaderboard code just checks if the leaderboard is present or not and doesn't check if we are currently fetching the leaderboard? Just a guess though, as I was not able to find the sourcecode on the page

(1 edit)

Thank you for your reply,

Yup, you're pretty much bang on. Do you think that I should try edit the Leaderboard so it can update if it receives the Reply after the Leaderboard Screen has been opened automatically? I'm not 100% if that will cause more problems or not.

(+1)

That shouldn't be too hard actually. Can do it with coroutines, I am pretty sure:

IEnumerator RenderLeaderboardEnumerator() { 
   // enable the loading spinner
    while (leaderboard_hasn't_loaded) {
        // update the loading spinner() * Time.deltaTime or something idk;
        yield return new WaitForEndOfFrame();
    }
    // disable the loading spinner
    RenderLeaderboard() ;;; 
}
...
    // in your OnEnable or wherever you are fetching:     StartCoroutine(RenderLeaderboardEnumerator());


Something like that, I imagine. You will have to fill in a lot of the blanks though

Thank you very much for the help! I'll try and work something like this into the game and release an update in a few hours.

(1 edit)

hello my name is Tarique am the game dev for SPEED OF LIFE 3D

I would like to give you feedbacks on your game so it can improve . send me your game link in the group so i can give you feedbacks, review and even ratings on your game .

for those who games have not got a feedback as yet visit this site and join the group

https://tariquegamecompany.wixsite.com/mysite/group/towi-group/discussion