Idle Rewards

개요

This demo uses GS2-Idle to work out and grant the rewards that build up while the player is away. Every 5 minutes away is worth 5 coins, every 12th interval (once an hour) is worth 50 instead, and the count stops at 8 hours. Buttons move your clock forward so hours away happen at once, and the coins you receive land in a GS2-Money2 wallet.

체험 방법

  1. Read the Rule under Idle rewards. Idle time shows how long you have been away out of the 8-hour cap, To receive shows the coins you could take now, and Next reward counts down to the next payout.
  2. Press Advance one hour to move your clock on GS2 forward one hour. Demo clock moves ahead, and To receive gains an hour’s worth: 11 intervals of 5 coins plus 50, for 105 coins.
  3. Press Receive; the coins go into Free balance under Where the coins land, and the idle count starts again from zero. Minutes short of a full 5-minute interval are dropped.
  4. Press Advance eight hours to reach the 8-hour cap; Idle time reads (full: receive to start counting again), and moving the clock further does not add to To receive.

The advance buttons change your account’s time offset. The account is shared by every showroom demo in the same browser, so the moved clock carries over to the other demos too.

사용하는 GS2 서비스

  • GS2-Idle: A GS2-Idle category defines the 5-minute interval, the 480-minute cap and the twelve interval rewards, and works out and grants what each player’s time away has earned.
  • GS2-Money2: Receiving the idle reward deposits free currency into a GS2-Money2 wallet (slot 0), which is shown as Free balance.

GS2 Studio에서 사용하기

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

https://github.com/gs2io/gs2-studio-package/tree/main/foundation-economy-idle/packages/foundation-economy-idle
  • Owner: gs2io
  • Repository: gs2-studio-package
  • Subdirectory: foundation-economy-idle/packages/foundation-economy-idle

소스 코드