zootools
TypeScript icon, indicating that this package has built-in type declarations

0.1.33 • Public • Published

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.

Package Sidebar

Install

npm i zootools

Weekly Downloads

214

Version

0.1.33

License

Apache-2.0

Unpacked Size

620 kB

Total Files

64

Last publish

Collaborators

  • metazoo