GithubHelp home page GithubHelp logo

jasoncox / nft-scanner-basic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from decentraland-scenes/nft-scanner-basic

0.0 0.0 0.0 8.87 MB

Checks whether the player owns a token from a particular smart contract before granting them permission to enter the club.

TypeScript 90.39% Dockerfile 9.61%

nft-scanner-basic's Introduction

NFT Scanner (Basic)

demo of nft-scanner-basic scene running in preview.

demo

Description

Checks whether the player owns a token from a particular smart contract before granting them permission to enter the club. In this example, we're checking whether the player owns a pair of RTFKT X Atari Sneakers, which is any token minted from this contract.

Note: There's another version of this scene here that performs more advanced token checks.

Instructions

Walk up to the door and press the E key to see if you can access the club. The door will open and the audio quality increases if you own at least one pair of RTFKT X Atari Sneakers. Please feel free to modify the contractAddress within the game.ts file to test other tokens.

Use your mouse to look around and W A S DSpace keys on your keyboard to move forward, left, backward, right and jump respectively. You can also press the P key to adjust the graphics settings.

Try it out

Install the CLI Download and install the Decentraland CLI by running the following command:

$ npm i -g decentraland

Previewing the scene Download this example and navigate to its directory, then run:

$  dcl start

Any dependencies are installed and then the CLI opens the scene in a new browser tab.

Add the following to the end of the URL in the browser window:

&ENABLE_WEB3

For example, if the URL is http://192.168.1.132:8000?position=0%2C0&SCENE_DEBUG_PANEL then change it to http://192.168.1.132:8000?position=0%2C0&SCENE_DEBUG_PANEL&ENABLE_WEB3

Note: Make sure you have a browser wallet installed like Metamask or Fortmatic as you'll need to be logged onto those with the network set to the Ethereum Mainnet in order for the scene to perform checks on your wallet address.

Acknowledgements

nft-scanner-basic's People

Contributors

takjohn 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.