Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 1.31 KB

README.md

File metadata and controls

48 lines (28 loc) · 1.31 KB

Open the door

A simple interactive scene with a door that can be opened and closed.

This scene shows you:

  • How to add primitive shapes and apply materials to them
  • How to handle click events
  • How to use the utils library to rotate an entity gradually
  • How to use the toggle component from the utils library to alternate something between two states
  • How to arrange entities into parents and children
  • How to rotate an entity around an arbitrary pivot point

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.

Scene Usage

Click on the door to open and close it.

Learn more about how to build your own scenes in our documentation site.

If something doesn’t work, please file an issue.

Copyright info

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