A blockchain based unity3d game built using Matic network and Nodejs.
- nodejs (8 or above)
- Unity3d (2019.2.8f1)
- Matic.js
- Metamask
-
Create two accounts on metamask which are connected to both the ropsten network and Matic testnet. Instruction for the same can be found at : https://docs.matic.network/getting-started/
-
The First account acts as the user account who plays the game against our company which is the second account.
-
Update the account address information and private key in the config.js file in the backend folder and update the account information of the user in the unity scipts namely : BteMatchScript.cs,GameManager1.cs
-
Update the WEB_URL in BteMatchScript.cs,GameManager1.cs, as the address of the node js server.
-
Build the unity project and get the executable
- Inside the Backend run :
npm install
npm run dev
- Run the unity executable and enjoy.