Chainlink Hackathon 2024
Inspiration
The inspiration for "HEROIC SAGA HORIZON" stems from our desire to fuse the immersive world of gaming with the innovative possibilities of blockchain technology. By combining NFTs, DeFi elements, and cutting-edge cryptographic techniques, we aim to create a unique and engaging experience. We envision a game where players can truly own their assets, strategize their progress, and participate in a thriving decentralized ecosystem.
What it does
Embark on an epic adventure with "HEROIC SAGA HORIZON," a groundbreaking game that seamlessly integrates NFTs, DeFi, and blockchain technology. Players collect and upgrade unique heroes through randomized card draws, equip them with specialized gear, and battle formidable NPCs. Each hero NFT is linked to a player's wallet using ERC-6551, ensuring ownership and security. The game employs ERC-404 for the creation and management of equipment NFTs and HSH tokens, making them integral to the heroes rather than the players.
Leveraging Chainlink VRF (Verifiable Random Function), we ensure fair and tamper-proof randomization for hero and equipment drops. This guarantees that all in-game items are distributed fairly and transparently. Additionally, ZK-Proof (Zero-Knowledge Proof) technology is used to verify off-chain battle calculations, ensuring integrity and trust in the game’s outcomes. Players can earn rewards and gear through victories, with an innovative NFT marketplace allowing for strategic trading and enhancements. Join the saga, conquer challenges, and rise as a legendary hero in the decentralized gaming universe.
How we built it
Key Technologies and Standards
- ERC-6551: This standard links the player's wallet with their hero NFTs, ensuring that all interactions and ownership details are securely recorded on the blockchain.
- ERC-404: Used for creating and managing equipment NFTs and HSH tokens, which are directly associated with hero NFTs. This integration significantly enhances the liquidity of NFTs and tokens.
- Chainlink VRF: Provides a reliable and verifiable source of randomness for generating hero and equipment NFTs, ensuring that all outcomes are fair and cannot be manipulated.
- ZK-Proof: Enables off-chain calculation of battle results while allowing for on-chain verification. This ensures that battle outcomes are accurate and trustworthy without compromising efficiency, greatly enhancing the game’s fluidity.
- QuickNode API: Used to enhance the game's performance and scalability by providing fast and reliable access to the Ethereum network, ensuring seamless interactions and transactions. We stock all the NFTs and HSH tokens in the QuickNode server to reduce the gas fee for minting and transferring NFTs, such like png, json, and metadata.
Methods to Obtain NFTs
- Opening Blind Boxes: Players can mint hero NFTs by purchasing and opening blind boxes. Chainlink VRF ensures that the process is fair and random.
- Marketplace: Players can buy hero NFTs directly from the marketplace, including all assets contained within, allowing for strategic acquisitions and sales.
- Game Battles: Players can earn equipment NFTs and HSH tokens by engaging in battles. Higher-level battles yield better equipment and higher rewards. Battle outcomes are calculated off-chain and verified with ZK-Proofs to maintain fairness.
- Trading HSH Tokens: Players can also obtain equipment NFTs by trading HSH tokens, adding another layer of strategy and resource management.
Challenges we ran into
- High Gas Fees: Transactions involving ERC-404 for equipment NFTs resulted in high gas fees. To mitigate this, we introduced a minting queue where token IDs from burned NFTs are reused before new IDs are minted, significantly reducing costs.
- ERC20 and ERC721 Interface Conflicts: We resolved these conflicts by determining the type of token (NFT or ERC20) based on the token ID, ensuring smooth interactions and compatibility.
- Incomplete Game Development: The game's complexity required extensive optimization and content enhancement. We invested significant time and resources to refine game mechanics and improve overall gameplay experience.
Accomplishments that we're proud of
We are proud of our innovative approach to integrating ERC standards, creating a seamless and user-friendly gaming experience. Successfully implementing Chainlink VRF and ZK-Proofs showcases our technical capabilities and commitment to fairness and transparency. Additionally, our solutions for reducing gas fees and resolving interface conflicts demonstrate our problem-solving skills and dedication to providing an optimal player experience.
What we learned
Through this project, we gained deep insights into game development, particularly the integration of blockchain technologies. We honed our skills in using ZK-Proofs for secure off-chain calculations and Chainlink VRF for fair randomization. Our experience with gas optimization and handling ERC standard conflicts has been invaluable. We also became proficient in utilizing QuickNode APIs to enhance our game's performance and functionality.
What's next for Heroic Saga Horizon
The future of "HEROIC SAGA HORIZON" involves continuous game optimization, expanding content, and enhancing player engagement through community-driven events and updates. We plan to introduce a wider variety of heroes and equipment, refine battle mechanics, and improve the overall user experience with generative AI. Our goal is to build a vibrant, decentralized gaming ecosystem where players can thrive, explore endless adventures, and become legendary heroes.
Log in or sign up for Devpost to join the conversation.