Reworking Leaderboard System


Today I’m going to be going over how I’m completely reworking the entire leaderboard system. The only problem that I ran into with the leaderboard system was how would I deal with people who have the same amount of points? Another problem that I ran into is how would I go about reworking the system to be more efficient, and easier to understand?

I was able to solve most of the problems just by making the system use a Dictionary. When I had the dictionary is stored the string (Root Objects Name), and the value (points) they had associated with them. It allowed me to quickly and efficiently get, and set the amount of points each player/AI had at the time without going through a bunch of loopholes. It also allowed me to use the dictionaries Sort By descending feature, which helped me figure out who’s in first place based off of points, and allows me to quickly use the game objects position if I needed it if they had the same amount of points.

– Ryan Lugo

Files

BlazeRunners2.2.exe 58 MB
Apr 21, 2024

Get BlazeRunners : Bullet Ballet

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.