Skill Tree
이 데모에 대하여
데모는 익명 계정으로 자동 로그인합니다. 이 계정은 쇼룸의 모든 데모에서 공유되므로 한 데모에서 얻은 아이템이나 재화가 다른 데모에도 반영됩니다. 로딩에 약간 시간이 걸립니다. 화면이 작다면 새 탭에서 열어 사용해 보세요.
개요
Recruit a character, open its skill tree, and spend coins to unlock nodes. The tree has four nodes, first, left, right and last: left and right each require first, and last requires both left and right. Progress is kept separately for each character, and an unlocked node can be put back for half of what it cost.
체험 방법
- Press Recruit under Recruit a character. A row for the character appears under Open a character’s tree.
- Press Deposit under Get coins to put 100 free coins into Your coins. The four nodes cost 10, 20, 20 and 50, exactly 100 in total.
- Press Open tree on the character’s row. The Skill tree opens, showing each node’s name, its cost, and what pressing it would do.
- Press Release on
firstto pay 10 coins and unlock it. Pressing Release on a node whose prerequisites are still locked unlocks those prerequisites in the same press, as the node’s line says (releases 2, 30 totalonleft). - Press Restrain on an unlocked node to lock it again, along with any unlocked nodes that depend on it; 50% of the cost comes back as coins.
- Press Close, recruit another character and open its tree to see that each character keeps its own progress.
사용하는 GS2 서비스
- GS2-SkillTree: GS2-SkillTree node models define the four nodes, their prerequisites, the coins each charges on release, and the return rate of 0.5 when one is put back. Progress is recorded per recruited character, keyed by its item set (
propertyId). - GS2-Money2: A GS2-Money2 wallet holds the coins. Releasing a node withdraws its cost through
Gs2Money2:WithdrawByUserId. - GS2-Inventory: GS2-Inventory holds the recruited characters; each character’s item set GRN is the key that says whose skill tree is being read.
- GS2-Exchange: GS2-Exchange rate models define Recruit, which grants a character, and Deposit, which pays in free coins.
GS2 Studio에서 사용하기
GS2 Studio의 Simple 모드에서 Add features 를 열고 Skill Tree 의 Add 를 누르면 이 기능을 자신의 프로젝트에 가져올 수 있습니다. 패키지를 직접 지정하려면 Add from GitHub 를 선택하고 아래 패키지를 입력합니다.
https://github.com/gs2io/gs2-studio-package/tree/main/micro-economy-skill-tree/packages/micro-economy-skill-tree- Owner:
gs2io - Repository:
gs2-studio-package - Subdirectory:
micro-economy-skill-tree/packages/micro-economy-skill-tree