ScratchData LogoScratchData
Back to grandpasp's profile

My 1st Leaderboard (Backpackable)

GRgrandpasp•Created January 29, 2024
My 1st Leaderboard (Backpackable)
6
6
81 views
View on Scratch

Instructions

This is a demo of my 1st Leaderboard 1. Click on Score to increase your score. 2. Click on Save for your Username and score to be ranked and added to the Cloud-based Leaderboard. Feel free to use this in you projects. Please leave feedback in the Comments section.

Description

This Leaderboard code handles all usernames between 3 and 20 characters (including mixed-case) and any combination of accompanying "scores" (any numeric data) up to 9 digits (0 to 999,999,999). There is no fixed limit to entries. At maximum Username/Score lengths (all usernames 20 characters; all scores = 999,999,999), it will store 49 records. At minimum Username/Score lengths (all usernames 3 characters; all scores = 0-9), it will store 256 records (based on my automated simulation testing and calculations). Average, random Username/Scores should yield 100+ entries. Internally documented with the procedure for using it. For those who are interested in the details now, here is how the records are packed: 1 digit for "length-of-score" (that's why max of 9) 1-9 digits for "score" 6-40 digits for username (2 digits per character code) 2 digits for termination character for a range of between 10 and 52 digits per record these records are ALL strung together and "wrapped-around" through all (up to ten) cloud variables. That gives the Leaderboard a capacity of between 49 and 256 records. Credits: Hourglass Sprite from "Hourglass Animation" by @Keveg

Project Details

Project ID958041789
CreatedJanuary 29, 2024
Last ModifiedApril 22, 2024
SharedJanuary 31, 2024
Visibilityvisible
CommentsAllowed