GithubHelp home page GithubHelp logo

quanquanmeta / project_web3_battle_game Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adrianhajdin/project_web3_battle_game

0.0 0.0 0.0 36.86 MB

With a stunning design, interactive gameplay, smart wallet pairing, live interaction with smart contracts, and, most importantly, the ability to battle other players in real-time, AvaxGods is the best and the only Web3 battle-style online multiplayer card game that you can currently find on YouTube.

Home Page: https://jsmastery.pro

JavaScript 67.45% TypeScript 5.62% CSS 9.97% HTML 0.64% Solidity 16.32%

project_web3_battle_game's Introduction

Avax Gods - Online Multiplayer Web3 NFT Card Game

Gameplay

Launch your development career with project-based coaching on JS Mastery Pro.

Instructions on setting up the Web3 part of the project

  1. cd web3
  2. npx hardhat -> y → typescript → enter → enter
  3. npm install @openzeppelin/contracts dotenv @nomiclabs/hardhat-ethers + Hardhat packages npm install --save-dev "hardhat@^2.12.0" "@nomicfoundation/hardhat-toolbox@^2.0.0"
  4. Install Core, a Metamask smart wallet alternative built for Avalanche dApps
  5. Turn on the testnet mode by: opening up the Core extension -> click the hamburger menu on the top left -> go to advanced -> turn on the testnet mode
  6. Fund your wallet from the Avax Faucet
  7. Create a .env file and specify a PRIVATE_KEY variable.
  8. To get to the private key, do the following steps:
  9. Open up the Core extension -> click the hamburger menu on the top left -> go to security and privacy -> click show recovery phase -> enter your password -> copy the phrase -> go to wallet.avax.network -> click access wallet -> choose mnemonic key phrase -> paste what the words we’ve copied from Core -> on the sidebar click manage keys -> view c-chain private key -> copy -> paste it in the .env file
  10. Copy the hardhat.config.ts file from the GitHub gist down in the description
  11. Copy the deploy.ts script from the GitHub gist down in the description
  12. Copy the AvaxGods.sol smart contract code from the GitHub gist down in the description
  13. Compile the contract by running the npx hardhat compile command
  14. Deploy the smart contract on the Fuji test network by running the npx hardhat run scripts/deploy.ts --network fuji command -- { AVAXGods: '0xa8222D307da15182dE938D6015f7c80BEaB6100d' } Move the /artifacts/contracts/AVAXGods.json file to the /contract folder on the frontend Copy the address of the deployed contract from the terminal and paste it into the /contract/index.js file of the frontend application

project_web3_battle_game's People

Contributors

adrianhajdin avatar hxqswx avatar tidbitsjs 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.