Skip to content

The "Web3 Magic Treasure Chest" sample game requires the user to pay to open the chest, then randomly win rewards including gold currency and prize NFTs

Notifications You must be signed in to change notification settings

MoralisWeb3/web3-unity-sdk-sample-game-wmtc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Web3 Magic Treasure Chest

Pay to open the Magic Treasure Chest. Randomly win rewards including gold currency and prize NFTs.

Getting Started

  1. Download this repo (*.zip or *.git)
  2. Download the Unity Editor
  3. Open this repo in the Unity Editor
  4. Follow the ReadMe.asset instructions within Unity
  5. Enjoy

See docs.moralis.io/unity for more info.

Bonus: Service Type

This game features flexibility on the service layer. Toggle the TheGameServiceType enum to explore various ways that the game communicates with external services. Select the ReadMe.asset, select the TheGameConfiguration.asset, and choose the TheGameServiceType value. See the screenshots below.


Documentation

  • README.md - The primary documentation for this repo
  • Assets/Moralis Web3 Unity SDK Samples/Web3MagicTreasureChest/Documentation/ReadMe.asset - Select this asset in Unity to get started

Configuration

Unity Structure

  • Unity/ - Open this folder in the Unity Editor
  • Unity/Assets/Moralis Web3 Unity SDK Samples/Web3MagicTreasureChest/Scenes/ - Open any Scene. Press 'Play'!

Smart Contract Structure

  • SmartContracts/Hardhat/ - Open this folder in the Visual Studio Code Editor
  • SmartContracts/Hardhat/Instructions.txt - The primary documentation for smart contracts

Dependencies


Media

Media


Video: Create a Web3 Magic Treasure Chest game for Unity

Thumbnail TimeStamps

Project

Project ReadMe TheGameConfiguration

Scenes

Intro Authentication Settings
ViewCollection Game Game

What is Moralis?

Moralis

  • Moralis provides a single workflow for building high performance dapps. Fully compatible with your favorite web3 tools and services.
  • See moralis.io for more info.

Web3 Unity SDK

Need Help?

About

The "Web3 Magic Treasure Chest" sample game requires the user to pay to open the chest, then randomly win rewards including gold currency and prize NFTs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published