Create AI-generated rewards for your web3 game in less than 60 minutes
June 6 2024
![Create AI-generated rewards for your web3 game in less than 60 minutes](https://images.ctfassets.net/wk2k9fpkzm7n/2LgAABOu9exrnRjRFgGfuI/b5804da29a2321aa5397dd1dd72bc816/Sequence_Blog_Cover_-_AI_minting_03.jpg?q=100&w=1440)
Following our recent partnership announcement with Scenario, a GenAI Engine and content creation tool, we have even more exciting news to share! đ Weâve recently published a comprehensive walkthrough guide to help developers integrate a static HTML/JavaScript maze into a web3 game. In this guide, we will create a web3 application built in React, leveraging tools from the Sequence stack to mint AI-generated loot from treasure chests using an Embedded Wallet for authentication, and Cloudflare workers for easy, no-confirmation transactions. Follow our step-by-step guide and open source code template to focus on building what matters most â immersive and engaging web3-powered games that players will love â and accelerate your time to market. Letâs go! âď¸
Game guide: Treasure chests with AI minting
The Sequence web3 loot box guide will provide you with the resources to:
Leverage Sequence Embedded Wallets in your React app: Set up a project on Sequence Builder, integrate Sequence Kit, and create a seamless, non-custodial login functionality that allows the player to authenticate with Google or Apple auth and creates a Sequence Embedded Wallet behind the scenes.
Deploy a smart contract and mint NFTs: Deploy an ERC-1155 contract, sponsor gas for transactions, and set up a Cloudflare Worker for gasless minting.
Generate AI art and store media: Use Scenario to generate images based on prompts, store the generated image URL in Sequence Metadata Service, and integrate it with your gameâs front-end UI.
Our step-by-step integration guide covers everything you need to integrate a static maze into your game with AI-generated loot for players â in less than 60 minutes.
AI-generated loot in action: The Sequence Dungeon Minter
Weâve developed a live gameplay demo to showcase AI-generated loot minting in action â explore the Sequence Dungeon Minter!
In Dungeon Minter, players delve into a complex network of dungeon passages to uncover treasure chests. Loot found in these chests can be personalized and minted as unique digital assets (NFTs) on the blockchain, and then stored in a playerâs wallet. This system allows players to use their loot in-game, trade it with others, or even utilize it on different platforms.Â
The Sequence Dungeon Minter offers a glimpse into a future where AI-generated NFTs can significantly enhance the gaming experience. If youâre interested in testing out the demo, all you need to do is đ Login to Dungeon Minter using your Google or Apple authentication powered by Sequence Embedded Wallets. Go on an adventure and browse through our Dungeon Minter maze to find treasure chests.
![Dungeon Minter demo](https://images.ctfassets.net/wk2k9fpkzm7n/2Tgaub5Wlbg7c41vd6CkI1/616842effeabe4298264aec38c243dc6/Screenshot_2024-06-04_123259.png?q=100&w=1440)
Users will need to rotate the lock on the treasure chest until the lock pattern forms a solid, connected line.
![Sequence Dungeon Minter - Treasure chest combination](https://images.ctfassets.net/wk2k9fpkzm7n/3Z2onNXyNBXg3bKRMBHU1i/d0c52e6e3dfaed582e33e0d0d8471df0/Screenshot_2024-06-06_143545.jpg?q=100&w=1440)
Once youâve unlocked the treasure chest, a message will appear while your dynamically generated loot loads. The loot is generated from random attributes leveraging the Scenarioâs API.
![Sequence Dungeon Minter - Treasure chest unlocked and Scenarioâs GenAI content creation engine API used](https://images.ctfassets.net/wk2k9fpkzm7n/2x3g6BaQSWiX6xogL8NuFm/cd5958e03eee807ac3e36d40351cc72f/Screenshot_2024-06-06_144351.jpg?q=100&w=1440)
After a few seconds, your loot will appear. Your item will include an image and metadata including the specs of the NFT such as performance attributes and rarity. Youâll also have the option to mint the loot to your wallet.
![Sequence Dungeon Minter - AI-generated NFT](https://images.ctfassets.net/wk2k9fpkzm7n/4JUeZ6gpCE865vZ5q2Jl69/b05db1486add272ff4f781f60f5d4286/Screenshot_2024-06-06_143630.jpg?q=100&w=1440)
![Sequence Dungeon Minter - AI-generated NFT minted](https://images.ctfassets.net/wk2k9fpkzm7n/4LMyjeUkpJG8eqpWkpT2z5/0bc379c683fa95443c6c0222cb413b49/Screenshot_2024-06-06_143652.jpg?q=100&w=1440)
After selecting the âMint to walletâ option, click the button on the bottom right-hand corner âopen walletâ. Once youâve completed this step, youâll see your freshly minted loot item in your wallet. Within your smart wallet, youâll also have the option to transfer your loot to other players.Â
![Sequence Dungeon Minter - minted NFT within player wallet](https://images.ctfassets.net/wk2k9fpkzm7n/4CpewklmKhW8Idx8EcvJct/04c6079b4c4885ab5f5b12fac7b39a28/Screenshot_2024-06-06_143723.jpg?q=100&w=1440)
And thatâs a wrap! For now at least. Explore the dungeon as we continue to build and unravel more unique web3-powered features with loot and rewards around every corner. Weâll continue to iterate and improve on our Dungeon Minter demo with updates to our code and integration guide added to our documentation. As this framework of gameplay gains adoption, it'll unlock significant positive impacts for web3 game developers such as increased personalization, deeper player engagement, exciting monetization opportunities, and improved player retention.Â
If youâre a developer:
Check out our Github repos of Dungeon Minter frontend and backend
Start building with the help of our guide!
And if youâre a gamer, test out Dungeon Minter and let us know what you think!
Sequence is the leading all-in-one development platform for integrating web3 into games. Onboard, monetize, grow, and retain players with Sequenceâs award-winning technology. From collectibles and ownable rewards to fully on-chain experiences, Sequenceâs easy-to-integrate platform solves blockchain complexities, so developers can focus on creative execution and delivering amazing player experiences. Trusted by hundreds of games, thousands of developers, and powering millions of users, Sequence is backed by Take-Two Interactive, Ubisoft, Xsolla, Bitkraft, Brevan Howard, Coinbase, Polygon, and more. To learn more, please visit: https://sequence.xyz/
---
Have any suggestions on how to improve Sequence development platform? Request a new feature here!
Written by
![](https://images.ctfassets.net/wk2k9fpkzm7n/76Iyj00Ni6Sqcrrn9tGhH8/05599f2b82b3e1e4b4668394dee4c663/Megan.jpg?q=100&w=200)
Megan Doyle
Growth Marketing Lead![](https://images.ctfassets.net/wk2k9fpkzm7n/55Gy2V03vp8HtHd7GT4wiu/2d784e5c291eb846e631ecb704a5b4cb/Screenshot_2023-05-15_190244.png?q=100&w=200)
Nicola Fraccaroli
Content Marketing ManagerRelated posts