Overview - Weekly leaderboard - (Unity module)
Last updated on October 24, 2024
Introduction
Limiting a competition to a limited period of time can make playing with others more balanced and gratifying. In this module, you will learn how to set up a leaderboard that resets every week to keep competition fresh.
Prerequisite
In order to complete on this module, you will need:
To have completed the following module:
The Byte Wars
tutorialmodules
branch checked out in your local Byte Wars Unity project repository.To have force enabled this module. You can do this by adding the following code to the
Assets/Resources/Modules/TutorialModuleConfig.json
file:{
"enableModulesOverride": true,
"modulesName": ["PeriodicLeaderboardEssentials"]
}
Learning objectives
At the end of this module, you will know how to create and reset a weekly leaderboard and implement:
- Adding a player's score to the weekly leaderboard.
- Listing and displaying all the scores in the weekly leaderboard.
Preview
At the end of this module, your project will look like the image below.