This project demonstrates a basic NFT game. In this game there are several game characters that a user will be able to mint to attack the boss. ERC721 has been used as a token standard for creating NFT. On chain metadata have been used.
Features :
- The user can mint a character out of the available characters.
- The user can attack the boss which lives in the contract and is not a NFT.
- When a player attacks on the boss they boss also attacks the player.
- When boss and player attack each other each hp is reduced in propotional to their attacking damage
- Function to check if a player has already minted a character.
- Solidity
- Javascript
- Hardhat
- Clone this repo
- npm install
- npx hardhat run ./scripts/run.js
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help