DEV Community

HiuKim Yuen
HiuKim Yuen

Posted on

ThirdWeb Hackathon

My first experience with thirdWeb GamingKit and ContractKit was for developing a web3 game.

"Momentum" is a massive player strategy game that features a very simple game mechanism. To be successful, you must possess the skill to make the right move at the right moment.

The full game rules can be found at https://github.com/hiukim/thirdweb-game/blob/master/Rules.md

The tech stack is as follows:

The backend is implemented as a smart contract that can be deployed on an EVM-compatible blockchain. All the gaming data and players' moves are stored on-chain and are publicly viewable and verifiable.

I used ContractKit provided by thirdWeb, which allowed me to deploy the contract easily and manage it in a web dashboard.

The frontend gaming interface is developed with Unity using thirdWeb GamingKit. The gaming kit allows me to connect to a wallet and interact with the smart contract easily, so I can focus on the actual game implementation. The project can be exported to a WebGL application hosted on the web. The gaming kit also supports deploying the game to IPFS directly without any hassle.

A test version of the game is deployed to the Goerli network and IPFS, and here is a playable link for anyone interested: https://gateway.ipfscdn.io/ipfs/QmUudgzEzso4p3AJA4BmJGJbcu8qGJJP2sz77rdrDWUFJ9/

Top comments (0)