Inspiration

badges enable to enhance game players loyalty by indicating their respective progression. Hence I have decided to experiment its management during this Ready Player Challenge, using Thirdweb Portal/SDK and Unity technologies

What it does

Unity 3D Game with Smart Contract Access on Polygon Blockchain Network

(Simple) Game Logic :

  • The Player has to move a Ball to hit a Target by Typing Keyboard (Left, Right, Up, Down and Space to Jump) Inputs Clicks and gets one point each time the Target is hit.

  • Badge Level 1 is granted to the Player if (s)he reaches 3 points

  • Badge Level 2 is granted to the Player if (s)he reaches 10 points ...

Smart Contract Integration :

  • At the Beginning of the game session, the Player has to identify with his/her Metamask Wallet.

  • On each win (Target hit) action, the Player can decide either to end the session, either to RePlay, either to Synchronize (Store) Data with the Smart Contract.

  • Badges represent NFT Player rewards associated to the Smart Contract

How we built it

Challenges we ran into

  • Unity big files for source code control

  • Environment Parameter Configuration

Accomplishments that we're proud of

  • custom smart contract deployed on Polygon Blockchain thru Thirdweb portal

  • working Unity simple 3D Game interacting with Smart Contract + Metamask Wallet thanks to **Thirdweb **Unity package and SDK

  • admin frontend App page to display Game Indicators about the Game and Players

What we learned

  • develop/build/run Unity game

  • integrate Thirdweb sdk for smart contract ERC-1155 special features. This has been facilitated by Thirdweb documentation available on https://portal.thirdweb.com/ and following some tutorials/guides

  • Thirdweb unity game sharing to others

What's next for w3badge

  • Improve Unity Game Logic and Graphics

  • Enhance Smart Contracts Management

  • Deploy Apps (Admin frontend NextJS,..) on public server,...

Built With

Share this project:

Updates