Code Monkey home page Code Monkey logo

markus-dragons's Introduction

Markus-Dragons

My project is based on the template of the Bootcamp of Ivan On Tech Blockchain Academy.

My ERC-721 project is an NFT game where you can collect, create, breed and buy/sell your non-fungible dragon tokens. To improve the security, Markus-Dragons uses OpenZeppelin smart contracts to prevent hackers from intercepting the users funds, by using the Escrow Contract to store the ETH and the users can securely withdraw their funds in their gallery, with their MetaMask account.

Built With

Getting Started

Using Markus-Dragons on testnet

  1. Install the MetaMask wallet and choose the Ropsten Test Network.

  2. To interact with Markus-Dragons you need some ETH, you can get 1 test ETH by entering the address of your MetaMask account to this faucet.

  3. You can now start interacting with the project, by clicking on Markus-Dragons.

Using Markus-Dragons locally

  1. You need to install Node.js.

  2. Enter npm install -g truffle into the command line to install it globally.

  3. Install the local Ethereum node Ganache.

  4. Open Ganache, create a new workspace, click add project and select truffle-config.js in the project files.

  5. To deploy the contracts type truffle console and then migrate into the command line.

  6. Copy the contract address of Dragoncontract and DragonMarketplace. Paste them into the variables dragonContractAddress and marketplaceAddress in /assets/js/components.js.

  7. Use a localhost with python 3, add the directory of the client folder cd .../client into the command line and then enter python -m http.server. In your web browser enter http://localhost:8000.

Usage

Creating Dragons

Choose between 82 different colors, 7 different eye shapes and 5 different horn shapes & animations. When you create dragons, you can choose to generate a random dragon or customize your own. Every dragons cost 0.05 ETH and every users can create max 5 dragons.

Breeding Dragons

Select the dad and mom dragon that you want to breed and get a new baby dragon that gets the mixed DNA from its parents. One color or attribute will change randomly, inherited from the dragon ancestors. When you have reached the maximum of 5 created dragons, you can breed your dragons to get more.

Dragon Gallery

View all your dragons and check their information. In your gallery you can also sell your dragons for ETH, you can view or remove your offers and withdraw your funds when your offer has been sold.

Before you sell your dragons you will get a pop-up that will ask if you accept to set the marketplace as an approved operator, you will need to confirm in order to sell them. If you don't want to sell your dragons anymore, you can always remove the operator approval when you want.

Marketplace

In the marketplace you can buy active offers. When you have bought a dragon, the Dragon Token will be transferred to your gallery and the seller will be able to withdraw their funds in their gallery. When you have created your 5 dragons, buying dragons is another way to collect more dragons.

License

MIT

Contact

Markus Bielaszka - [email protected]

markus-dragons's People

Contributors

markus-55 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.