This simple scene shows how to add animations to a `GLTFComponent` and handle click events.
Clone or download
Latest commit 55abe29 Jan 21, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode Initial commit Jan 6, 2019
bin various optimizations Jan 21, 2019
models Initial commit Jan 6, 2019
screenshot Initial commit Jan 6, 2019
src apply best practices Jan 7, 2019
.DS_Store Initial commit Jan 6, 2019
.dclignore Initial commit Jan 6, 2019
.gitattributes Initial commit Jan 6, 2019
.gitignore Initial commit Jan 6, 2019
Dockerfile Initial commit Jan 6, 2019
LICENSE Initial commit Jan 6, 2019
README.md various optimizations Jan 21, 2019
package-lock.json Initial commit Jan 6, 2019
package.json various optimizations Jan 21, 2019
scene.json Initial commit Jan 6, 2019
tsconfig.json Initial commit Jan 6, 2019

README.md

Shark animation

This simple scene shows how to add animations to a GLTFComponent and handle click events.

  • glTF models
  • animations
  • click events

Explore the scene: this link takes you to a copy of the scene deployed to a remote server where you can interact with it just as if you were running dcl start locally.

Install the CLI

Download and install the Decentraland CLI by running the following command

npm i -g decentraland

For a more details, follow the steps in the Installation guide.

Previewing the scene

Once you've installed the CLI, download this example and navigate to its directory from your terminal or command prompt.

from the scene directory:

$:  dcl start

Any dependencies are installed and then the CLI will open the scene in a new browser tab automatically.

Usage

Click on the shark to toggle the bite animation on and off. The swim animation should be always on.

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

Copyright info

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