A fully decentralized deck builder featuring Nouns using XMTP, Airstack, and Near BOS
This project a fully playable game between two players where each turn the users will recruit Nouns (cards) into their teams (deck). Between turns the players Nouns will fight automatically and the winner of the round is determined based off the strength and health of their Nouns. The game continues the process of recruiting more Nouns and fighting until one team is left without health points and the other victorious! This game is carefully crafted around the personality of Nouns and with that comes great strategy, choosing the best units at the best time. Make sure you watch your economy, Nouns, and enemies closely to make the best decisions. Take pride in your Nouns, lead your Nouns, and charge into the depths of battle. As Sun Tzu said in the art of war: βWinβ.
The Frontend is built with React and hosted on Near BOS, while p5.js handles the canvas and animations in between Shopping and Battling states. Nouns are extracted from the Nouns API directly into the client and are used as the primary art assets. For user experience we use Ethers.js to either log in players who already own wallets, or create temporary wallets for guest players so all can enjoy the game. When players are looking for opponents we use Airstack to recommend players to invite over XMTP. We make recommendations based on Noun ownership.