Rankings

개요

A leaderboard shared by every visitor. Start a three-minute contest under Score contest, post scores, and once your contest is over, receive coins by the rank you finished at. Each visitor’s entry window is opened by a GS2-Schedule trigger, and the scores and rewards are a GS2-Ranking2 global ranking.

체험 방법

  1. Press Start contest to open your own contest for three minutes; Status turns to Open: play while the time lasts and Ends counts down the time left.
  2. Press Play to score a random 1 to 1000. Only a new personal best is posted, and You shows your rank and best score.
  3. The board below lists other visitors’ scores with your own row (You) among them; other visitors’ new scores can take a few minutes to appear.
  4. Press Finish contest (or wait three minutes) to close the contest; Status turns to Over: your reward is ready to receive.
  5. Press Receive; the reward for your rank (1st 300, 2nd-3rd 150, 4th-10th 80, anyone else who played 30 coins) lands in Free balance under Where the coins land.

The ranking has a single season, so each account can receive a reward once. Open the demo in another browser or a private window to join the same board as a second anonymous account.

사용하는 GS2 서비스

  • GS2-Ranking2: A GS2-Ranking2 global ranking (higher is better, 1 to 1000) puts every visitor’s score on one board and pays the reward for each rank band once the contest is over.
  • GS2-Schedule: A GS2-Schedule relative event is the ranking’s entry period; the trigger pulled by Start contest opens it for three minutes per visitor.
  • GS2-Exchange: Start contest and Finish contest are free GS2-Exchange rates whose transactions pull and clear the trigger.
  • GS2-Money2: The rank reward coins are deposited into the GS2-Money2 wallet as free currency.

GS2 Studio에서 사용하기

GS2 Studio의 Simple 모드에서 Add features 를 열고 Rankings 의 Add 를 누르면 이 기능을 자신의 프로젝트에 가져올 수 있습니다. 패키지를 직접 지정하려면 Add from GitHub 를 선택하고 아래 패키지를 입력합니다.

https://github.com/gs2io/gs2-studio-package/tree/main/micro-liveops-ranking/packages/micro-liveops-ranking
  • Owner: gs2io
  • Repository: gs2-studio-package
  • Subdirectory: micro-liveops-ranking/packages/micro-liveops-ranking

소스 코드