SpellForge is a turn-based, 2-player wizard dueling game where players battle using NFT spell cards. Defeat your opponent to win Shards, but beware – losing means sacrificing a spell from your collection. Use Shards to forge powerful new spells and climb the ranks in this strategic, high-stakes magical showdown.
Built using Stackr's SDK, NextJS, Web3Auth, Wagmi and Viem.
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:
- Spell Battles: Use a variety of spell types including Attack, Defense, Healing, and Illusion to outsmart and defeat your opponent.
- High-Stakes Gameplay: The loser of each match forfeits a random spell from their collection, adding tension to every duel.
- Shard Rewards: Winners earn Shards (ERC-20 tokens), with the amount varying based on match difficulty.
- Spell Forging: Use Shards to create new, powerful spells. The more Shards used, the more potent the spell.
- Trading System: Trade Shards with other players to boost your forging capabilities.
- Limited Collection: Players can hold a maximum of 5 spells, encouraging strategic choices in spell selection and forging.
- 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.
- Stackr's SDK
- Next JS
- Websockets (socket.io)
- PostreSQL with Prisma
- Web3Auth
- Wagmi
- Viem
- Tailwind CSS
- Bun - we leverage Bun's bundler to build our micro-rollups.
- Node (LTS)
- Git
To quickly get started, you can clone this repository and follow the steps below:
- Clone the repository
git clone https://github.com/rahulbarmann/SpellForge.git
- Initialize the project by running the setup script
cd SpellForge
./setup.sh
- Run the project with
mprocs
bun dev
This sets up the micro-rollup and the web app to run concurrently. You can now visit http://localhost:3000
to see the web app in action and interact with the rollup by sending actions.
By default
Rollup runs on port 3210
Web App runs on port 3000