This is a Next.js frontend for the BattleNads game, a web3 RPG built on Monad.
- Web3 authentication via Privy
- Create and manage BattleNad characters
- Move around the game world
- Battle other players and monsters
- Manage equipment and attributes
- Blockchain integration for game state
This frontend requires Node.js version 18.17.1 (as specified in .nvmrc
).
- Install dependencies:
npm install
-
Set up environment variables: Create a
.env.local
file with necessary configuration (see.env.local.example
if available) -
Start the development server:
npm run dev
- Open the URL displayed in your terminal (usually http://localhost:3000)
npm run build
npm start
- Next.js 14.1.0
- React 18
- TypeScript
- Privy Auth for Web3 authentication
- Ethers.js for blockchain interaction
- Recoil for state management
- Chakra UI + TailwindCSS for styling
src/app/
: Next.js App Router pages and layoutssrc/components/
: Reusable UI componentssrc/providers/
: React context providers (Auth, Wallet)src/hooks/
: Custom React hookssrc/state/
: Recoil state managementsrc/utils/
: Utility functionssrc/abis/
: Ethereum contract ABIspublic/
: Static assets
The game allows users to:
- Connect their web3 wallet via Privy
- Create a character with customizable attributes
- Explore a multi-level game world
- Encounter and battle with other players and monsters
- Collect and equip weapons and armor
- Level up and allocate attribute points
The application is actively being developed with full blockchain integration on the Monad network.