project screenshot 1
project screenshot 2
project screenshot 3

SpellForge

SpellForge is a turn-based, 2-player wizard dueling game where players battle using NFT spells. Defeat your opponent to win Shards, but beware losing means sacrificing a spell from your collection. Use Shards to forge powerful spells and climb the ranks in this strategic showdown

SpellForge

Created At

ETHOnline 2024

Project Description

SpellForge is an exciting turn-based wizard dueling game that combines strategy, collection, and blockchain technology. In this 2-player game, wizards face off using their unique collection of spell cards, represented as NFTs. Key Features:

  1. Spell Battles: Use a variety of spell types including Attack, Defense, Healing, and Illusion to outsmart and defeat your opponent.
  2. High-Stakes Gameplay: The loser of each match forfeits a random spell from their collection, adding tension to every duel.
  3. Balanced Matchmaking: A ranking system ensures fair and challenging matches.
  4. Limited Collection: Players can hold a maximum of 5 spells, encouraging strategic choices in spell selection and forging.
  5. New Player Onboarding: Upon account creation, new wizards choose 2 out of 3 presented spells to start their journey.

SpellForge offers a unique blend of tactical gameplay, resource management, and the thrill of collecting and forging powerful spells. Every decision matters, from spell selection in battle to managing your Shard economy.

How it's Made

SpellForge was built using a modern tech stack combining Next.js for the frontend, Socket.io for real-time battles, and PostgreSQL with Prisma ORM for data management. We integrated blockchain functionality using Solidity smart contracts (ERC-20 for Shards, ERC-721 for Spells) via Wagmi and Viem. The core of our project leverages Stackr Labs' micro-rollups SDK, which significantly enhanced scalability and reduced gas costs by batching transactions. For deployment, we containerized our application using Docker and hosted it on AWS, ensuring robust scalability and reliability. Notable technical achievements include efficient NFT metadata caching, a secure random spell generation system using VRF. This architecture allowed us to create a seamless, cost-effective gaming experience while maintaining the decentralized nature of blockchain technology.

background image mobile

Join the mailing list

Get the latest news and updates