Skip to main content

Overview - Weekly leaderboard - (Unity module)

Last updated on June 12, 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 force enable this module 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.

periodic-leaderboard-preview Unity Byte Wars weekly leaderboard