Skip to content

The "Sim City Web3" sample game demonstrates the Moralis Web3 Unity SDK, geo mapping, and NFTs.

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Sim City Web3

Explore the world map to buy and sell virtual properties

This is a sample game to demonstrate the

The "Sim City Web3" sample game demonstrates the Moralis Web3 Unity SDK, geo mapping, and NFTs.

Getting Started

  1. Download this repo (*.zip or *.git)
  2. Download the Unity Editor
  3. Open this repo in the Unity Editor
  4. Enjoy

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

Bonus: Service Type

This game features flexibility on the service layer. Toggle the SimCityWeb3ServiceType enum to explore various ways that the game communicates with external services.

Select The Config Here

Select The Desired SimCityWeb3ServiceType Enum value


Documentation

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

Configuration

Structure

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

Dependencies


Media


Video: Unity Web3 Development - Sim City Web3 Sample Game

Thumbnail TimeStamps
  • 0:00 Intro Topic
  • 1:18 Main Topic
  • 2:52 Theory - OVERVIEW
  • 4:21 Theory - Polygon Blockchain
  • 5:49 Theory - NFTs For Gaming
  • 9:23 Theory - Project Setup
  • 13:03 Theory - Project Todo List
  • 14:38 Live Coding - OVERVIEW
  • 16:16 Live Coding - Hardhat / Solidity
  • 28:24 Live Coding - Unity / C#
  • 35:31 Live Coding - Web3ContractService
  • 46:49 Live Coding - Playing Finished Game
  • 51:07 Recap Topic

Images

Intro Menu Game
Readme.asset Project Window
Sequence Diagram

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?