Coder Social home page Coder Social logo

moralisweb3 / web3-unity-sdk-sample-game-wump Goto Github PK

View Code? Open in Web Editor NEW
13.0 4.0 11.0 193.75 MB

The "Web3 Unity Multiplayer Playground" sample game offers users a shared environment to move, trade currency, and trade NFTs.

Mathematica 9.02% C# 80.57% Solidity 3.14% JavaScript 7.17% CSS 0.10%
evm mumbai polygon sample-game smart-contracts unity unity3d web3 game

web3-unity-sdk-sample-game-wump's Introduction

Web3 Unity Multiplayer Playground - Sample Game

Enter the multiplayer playground - an shared environment to move, trade currency, and trade NFTs.

This sample game demonstrates Moralis Web3 Unity SDK.

Getting Started

  1. Download this repo (*.zip or *.git)
  2. Download the Unity Editor
  3. Open this repo in the Unity Editor
  4. Follow instructions at docs.moralis.io/docs/unity-demos for Setup Unity and Setup Backend
  5. Enjoy!

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


Documentation

  • README.md - Overall Docs for this repo
  • Unity/Assets/Moralis/TheGame/Documentation/ReadMe.asset - Unity Docs. Select this asset in Unity
  • Server/azure-playfab-functions-vscode/Instructions.txt - Azure Docs. Deployment required to empower the Unity game
  • SmartContracts/Hardhat/Instructions.txt - SmartContracts Docs. Deployment required to empower the Unity game
  • WebCompanionApp/NextJS/Instructions.txt - WebCompanionApp Docs. This is optional.

Configuration

Structure

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

Dependencies


Media


Video: Creating a Web3 Unity Multiplayer Playground

Thumbnail TimeStamps
  • 0:00 Intro Topic
  • 0:51 Main Topic
  • 7:11 Live Demo - Unity Sample Game
  • 13:16 Live Demo - Web Companion App (NextJS)
  • 15:22 Moralis Web3
  • 16:27 Recap Topic

Unity Images

Intro Scene 4-Player Multiplayer
Transfer Nft Transferred Nft
Readme.asset TheGameConfiguration.asset

Unity Planning Images

UX Sequence Diagram UML (Light) UMVCS Architecture UML Factory Pattern

Web Companion App Images

Authentication Page Players' Account Page

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.

Moralis SDK

Need Help?

web3-unity-sdk-sample-game-wump's People

Contributors

iamjaysway avatar samuelasherrivello avatar srivellobeamable avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

web3-unity-sdk-sample-game-wump's Issues

getIsRegistered RunContractFunction() FAILED,

I followed the documentation (Moralis NodeJS SDK) for the sample game and the instruction inside the project :
https://github.com/MoralisWeb3/web3-unity-sdk-sample-game-wump
https://docs.moralis.io/docs/using-unity-playfab#getnfts
I deployed my smart contract for this project but I think to know where to put the smart contract informations,
I also setup Playfab extension in my project,
✅ I can run the project when The Game Service type is in : "Local Disk Storage"
❌ I can't run the project when The Game Service type is : "Contract"
I can't click on the button 'Play Game"

getIsRegistered RunContractFunction() FAILED, result = UnityEngine.Debug:LogError (object) MoralisUnity.Samples.Shared.Debugging.UnityEngineDebug:LogError (object) (at Assets/Moralis/Shared/Scripts/Runtime/Debugging/Debug.cs:59) MoralisUnity.Samples.Shared.Data.Types.Contract/<RunContractFunctionAsync>d__16:MoveNext () (at Assets/Moralis/Shared/Scripts/Runtime/Data/Types/Contract.cs:99) Cysharp.Threading.Tasks.CompilerServices.AsyncUniTask2<MoralisUnity.Samples.Shared.Data.Types.Contract/d__16, string>:Run () (at `

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.