Create AI-generated rewards for your web3 game in less than 60 minutes
June 6 2024
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.
Users will need to rotate the lock on the treasure chest until the lock pattern forms a solid, connected line.
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.
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.
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.Â
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
Megan Doyle
Product Marketing DirectorNicola Fraccaroli
Content Marketing ManagerRelated posts