Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 1.62 KB

README.md

File metadata and controls

65 lines (48 loc) · 1.62 KB

SDK Library

zootools is a library to help speed up SDK development of Decentraland scenes.

Install

To use any of the helpers provided by this library:

  1. Install the dependencies as an npm package. Run this command in your scene's project folder:

    npm install dcldash@latest zootools@latest -B
    
  2. Make sure tsconfig.json is properly set up. Also see tsconfig.json example

       {
       "compilerOptions": {
          "outFile": "./bin/game.js",
          "allowJs": true,
          "strict": true,
          "noLib": false,
          "paths": {
             "dcldash": [
                "node_modules\\dcldash\\dist\\index.d.ts",
                "node_modules/dcldash/dist/index.d.ts",
                "./node_modules/dcldash/dist/index.d.ts",
             ],
             "zootools": [
                "node_modules\\zootools\\dist\\index.d.ts",
                "node_modules/zootools/dist/index.d.ts",
                "./node_modules/zootools/dist/index.d.ts",
             ]
          },
          "baseUrl": "."
       },
       "include": [
          "src/**/*.ts"
       ],
       "extends": "./node_modules/decentraland-ecs/types/tsconfig.json",
       "compileOnSave": false
       }
  3. Add this line at the start of your game.ts file:

    import { AlertSystem } from 'zootools';
    
    const alertSystem = new AlertSystem();
    
    alertSystem.new(`hello world`, 30000);

Usage

Coming soon

< Docs coming soon >

Copyright info

This scene is protected with a standard Apache 2 licence. See the terms and conditions in the LICENSE file.