0 ‐ Workspace Setup - Decentraland-Community-Modules/DCL-TCG-Framework-SDK7 GitHub Wiki
Before you can begin creating your own card games with the NFT TCG Framework, you will need to ensure you have set up your workspace correctly. To get started follow the steps below:
- Follow the official Decentraland editor installation guide here
- Download the most recent stable branch of the TCG Framework here
- In Visual Studio Code -> Open Workspace -> Open ‘TCG-Framework-Client’
After completing those steps you should be able to run the demo scene by using the DCL SDK7 extension. This will load a scene featuring several deck managers and tables that you can use to test the functionality of the framework.
In the demo scene you can use deck managers to view cards and customise your decks. You can also go to the card tables and participate in duels (this can be done against AI or you can start a second instance of the scene to test the peer-to-peer networking)!
For most creators the main files you will be interacting with are: index.ts: Initialization for the game scene. All of the starter demo code for profiles, deck managers, tables, etc. is stored here.
- tcg-card-data.ts: Definitions for all cards in the game. These are all the cards players can view, unlock, and use when playing card games.
- tcg-card-texture-data.ts: Definitions for all subject images used for cards. These are mainly references to sprite sheets for spells, character, and terrain images.
- tcg-faction-data.ts: Definitions for all card factions in the game. These define certain attributes of a card (every card has a faction), such as the background.
- tcg-faction-texture-data.ts: Definitions for all faction background images used for cards. These are mainly references to sprite sheets.
- tcg-contract-unlocks-data.ts: definitions for all card sets that can be unlocked by owning/wearing NFTs.
- tcg-level-unlocks-data.ts: definitions for all card sets that can be unlocked by gaining levels in the game. This also holds the starting cards allocated to new players (level zero is a listing of all cards guests & new players get when they join the game).