An Interest In:
Web News this Week
- March 22, 2024
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
An NFT based game
The project
So this past week I built out my second dApp with the current cohort in the Buildspace community. This time round, the project was to create an NFT based game. The goal was to make a game where you could attack a big boss via a transaction on the blockchain that would use a game smart contract.
So like the previous dApp, this required some knowledge of Solidity to build out our smart contact, Hardhat to help us develop our dApp with ETH, and some frontend skills (React and JavaScript).
The project provides a template for the frontend part, but once again I used my web3 starter project. The benefit of building out with the web3 starter is I'm improving the starter project.
Going off script
Like the first dApp I built, I made it my own. Here's some fun screenshots from the game I made.
Select your player
Mint your player
Attack the big boss
When your player is dead
If you're interested in how it's all built, I've open sourced it.
Terrible Characters
Terrible Characters is a fun NFT based game that I built as part of aBuildspace cohort. Try it out and have some fun!
Select your player
Mint your player
Attack the big boss
When your player is dead
Contributing
If you are interested in contributing to the project, first read ourcontributing guidelines. Take a look at ourexisting issues,or if you come across an issue,create an issue.For feature requests,start a discussionfirst.
Getting Started (Local Development)
Install the dependencies
npm install# oryarn
Start the project
npm run dev# oryarn dev
Open http://localhost:3000 with your browser to see theresult.
Getting Started (Gitpod)
The project can be run in Gitpod. Navigate tohttps://gitpod.io/#https://github.com/nickytonline/hello-edge-and-node. If youwish to load it in Gitpod as an external contributor, you will need to fork theproject first, then open
If you want to just check out the game, head on over to nftgame.iamdeveloper.com. Note that it's only on the Rinkeby test network so no real coin will be used.
Until next time!
Original Link: https://dev.to/nickytonline/an-nft-based-game-1jfk
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To