Character Gacha

개요

A gacha that draws characters for coins. Buy coins under Buy coins, pull the gacha under Draw a character, and the character you get is added to Your characters. Each draw runs the coin withdrawal from GS2-Money2, the GS2-Lottery draw and the GS2-Inventory grant as one transaction.

체험 방법

  1. Under Buy coins, press Buy on 10 coins, 50 coins or 250 coins; the balance under Your coins goes up.
  2. Under Draw a character, press Buy next to Draw a character for 10 coins; it spends 10 coins and pulls the gacha once.
  3. The character you drew (knight, archer, mage or healer) appears as a new row under Your characters; a duplicate gets a row of its own.
  4. Keep pulling: common (knight / archer) comes out 80% of the time and rare (mage / healer) 20%, with even odds within a rarity.
  5. A draw is refused when you have fewer than 10 coins; buy more under Buy coins.

The wallet is shared with the other showroom demos in the same browser, so coins you got in another demo can be spent here.

사용하는 GS2 서비스

  • GS2-Lottery: A GS2-Lottery prize table draws a rarity (common 80 / rare 20) first, then a character within it at equal weight.
  • GS2-Showcase: A GS2-Showcase shelf sells one draw as a 10-coin product, tying the coin cost to the draw in one purchase transaction; the coin packs are sold from another shelf.
  • GS2-Inventory: Each character drawn is added to a GS2-Inventory inventory, one entry per character, and listed under Your characters.
  • GS2-Money2: The GS2-Money2 wallet holds the coins: buying a pack deposits into it, and every draw withdraws 10.
  • GS2-Dictionary: Each prize also records the character in a GS2-Dictionary collection (not shown on this page).

GS2 Studio에서 사용하기

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

https://github.com/gs2io/gs2-studio-package/tree/main/micro-shop-character-gacha/packages/micro-shop-character-gacha
  • Owner: gs2io
  • Repository: gs2-studio-package
  • Subdirectory: micro-shop-character-gacha/packages/micro-shop-character-gacha

소스 코드