Yes, you read that right. For this week's project, we cloned a boss fight in Elden Ring using Unity and Moralis. You're going to learn how to add Web3 elements to the gameplay, so the loot that the boss will drop will be ERC-721 and ERC-20 tokens.
Specifically, we will first learn how the loot system is created. Then, how to transformate these loot items to ERC tokens and lastly, how to retrieve the now on-chain data to visualize it in the game menu.
Getting Started
- Download this repo (as zip or git)
- Download Unity
- Open this repo in Unity
- Having MetaMask installed both on your browser and your mobile device, with the Mumbai Testnet imported and some funds in both
- Follow the video tutorial
See docs.moralis.io/unity for more info.
Configuration
Platform Target
- Standalone MAC/PC & WebGLUnity Version
- 2021.3.2f1 LTSRender Pipeline
- Universal Render Pipeline (URP)
Scenes
Assets/_Project/Scenes/Game.unity
- Open scene and press 'Play'!
Dependencies
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
- This SDK brings the power of Moralis to your Unity projects.
- See docs.moralis.io/unity for more info.
Need Help?
- Contact us in the Moralis Forum.
- See forum.moralis.io/unity for more info.