Git Product home page Git Product logo

static-nft-game's Introduction

Basic NFT Blockchain Game

This project consumes a smart-contract developed in Solidity using the HardHat framework, you can find the repository in the following link:

About the project

Web project based on web3 developed with Next.js and ChakraUI .

Users will be able to play a small game after minting a new game NFT character. The objective is to defeat the boss along side other players. All game interactions are stored on the blockchain.

First authenticate using the Metamask wallet. Set the network configuration to Rinkeby Testnet.

At this point, players can mint their NFTs. It's necessary to provide payment for gas.
For this network, we will not be using real Ethereum. Instead we'll be using test funds from Rinkeby. Search for Rinkeby faucets to receive test funds.

The rules of the game are quite simple, each character has three attributes.

        ❤   Character HP      ⚔   Attack Damage       🛡   Defense
Atributo Descripción
1500
150
🛡 100
Atributo Descripción
1500
150
🛡 50
Atributo Descripción
1500
200
🛡 0
Atributo Descripción
1500
100
🛡 100
Atributo Descripción
1500
50
🛡 150
Atributo Descripción
1500
100
🛡 100
Atributo Descripción
1500
50
🛡 150
Atributo Descripción
1500
150
🛡 50
Atributo Descripción
1500
100
🛡 100
Atributo Descripción
1500
50
🛡 150
Atributo Descripción
1500
150
🛡 50
Atributo Descripción
1500
50
🛡 150

Defense is a bonus that your character has. The boss does not.

Big Kangh - The First Boss

Atributo Descripción
1000
200
🛡 0

To attack the boss first you need to choose a power, you can select one of these three:

  🔥  fuego     💧  water     🌿  vegetation

Each of them is good against one, weak against another.

Every time we select a power and attack the boss the boss will also select one of them, the winner will have the chance to attack and cause damage to the other.

Remember that the boss has a lot of hp and your character doesn't, so invite your friends so that together you can defeat him!😁

This was a 100% academic project while I was taking the buildspace platform courses , which I recommend to any developer who wants to start developing for web3.

Some screenshots of the project:

screenshot#1

screenshot#2

screenshot#3

screenshot#4


This is a Next.js project bootstrapped with create-next-app

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

static-nft-game's People

Contributors

paulgg-code avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.