Giter VIP home page Giter VIP logo

smart-items's Introduction

Decentraland smart items

This repository contains all of the smart itmes that are available by default in the Decentraland Builder.

About smart items

Smart items are special assets that include custom functionality, like buttons that can be pressed or doors that can be opened. Learn more about them in the Builder documentation: docs.decentraland.org/builder/smart-items/

Creating smart items

To create your own smart item, it's best to copy one of the existing smart items in this repository and edit it. The main files in a smart item are:

  • asset.json: The smart item manifest. Includes name, ID, category, tags. It also defines all the configurable parameters available in the UI, and all the actions that can be called by other smart items that share a scene.

  • item.ts: Contains the main code that controls the behavior of the item. Must include a class definition for the item, that has an init() function (to be called once when the scene starts), and a spawn() function (to be called once for every instance of the item when initialized). The spawn() function must take an argument of type Props that contains all of the parameters configured in the smart item's UI.

  • game.ts: Contains a scene that is used for testing the item's functionality locally. This scene can include multiple instances of the item, or other entities to carry out more elaborate tests.

Learn more about how to create custom smart itmes in the SKD documentation: docs.decentraland.org/development-guide/smart-items/.

smart-items's People

Contributors

cazala avatar katherinejoelle avatar menduz avatar nearnshaw avatar pbosio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smart-items's Issues

I can't do a tween that lasts 1.5 seconds

When I'm selecting the duration of a tween, I can only select full numbers. I can't pick for example a second and a half.
Even if I manually write the number on the side, it rounds it back to 1

dcl start not working

Copied a smart item folder
Installed dependencies
Updated decentraland-ecs
dcl start

Now the scene is empty.
image

Play an emote Action

Make the player perform an emote

This should support

  • A dropdown of default emotes
  • Fetching an emote from a file

From the SDK each is done via a different function

It's no longer necessary to handle any permissions to do this

Sound area smart item

An invisible volume (like the click area or trigger area), that plays a sound at a consistent volume when inside the cube.

This should nest an invisible entity to the camera, to make it play a sound while inside

It should come with some default short loop of music, as a reference. Users can then swap that for their own sounds.

Simplified view should include

  • File
  • Volume

"dcl pack" is not packing the code files in the item.zip

While following the document on smart items, I tried running the "dcl pack" command for one of the smart items from this repository.
The item zip created does not contain the code files.

Same is the behavior if I am trying to create a smart item from scratch using "dcl init" and then trying to bundle it using pack command.

If I scale a trigger area, it still takes up 1 x 1 x 1

It looks like it doesn't matter how big I make a trigger area, the area that matters is still the 1x1x1 size of the original cube.

Try stretching a trigger area as much as you can, and still it only activates if I walk into the center of the cube

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.