decentraland-scenes / Puffer

A puffer fish that inflates and deflates when clicked. This scene uses the Utils library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Puffer fish

A simple interactive scene with a puffer fish that blows up when clicked.

This scene shows you:

  • How to add a 3D model to a scene
  • How to use utils helper library to scale an entity and to delay actions
  • How to chain several actions so that they're performed one after the other
  • How to play a sound from a file

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 fish and it will puff up and then deflate, emitting a sound.

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

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.

Attributions

3D model from Sketchfab user Konta Johanna

Soudn file from FreeSound user Terhen

Both with creative commons licenses.

About

A puffer fish that inflates and deflates when clicked. This scene uses the Utils library.

License:Apache License 2.0


Languages

Language:TypeScript 81.7%Language:Dockerfile 18.3%