Posted September 06, 2024 by esdin
#leaderboard #playdate
While I'm hopeful for catalog access, and the Scoreboard API it allows, Squids is the type of game that demands a leaderboard. And so, being impatient, I made one
Freshly launched and cleared of my test data, the Squidboards are open and waiting for some friendly competition!
While some amazing avenues, like PD Portal, have been opening up, the playdate still doesn't (and might never?) have a developer accessible way to access the net. While this is a personal pain-in-the-neck, it's a good thing, as it keeps us all clear and free from ads, microtransactions, and data collection. So how do we get information from the game to a website?
I learned a lot about QR Code Density during this update. Mainly, I had originally built the 'board out to support daily and weekly times, but once I had switched from the web side over to the deck side, I quickly realized that as you pack more and more data into a QR Code it becomes both harder for phones to read, and more prone to weird bits of data rot. Like, a JSON parser doesn't appreciate a random "7" being added to it.
Anyways, it was quite bad. And so, I set about reducing the string length to something more reasonable, which meant that even though I had built support out for it, both in game and on the site, sending a whole block of daily and weekly scores was out of the cards.
Just because it's not reasonable to sync all that data over a QR code, doesn't mean it's not useful: Squids now supports local Score visibility, so you can ignore that one amazing run you did, and just try to get a high daily score. It's a nice little way to get a bit of dopamine when you've already hit your heights.
I'll probably write a separate, more in depth thing about building the leaderboards (the pain, the triumph, the confoundment), but I think this one works well short and sweet.