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
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.
This scene is protected with a standard Apache 2 licence. See the terms and conditions in the LICENSE file.
3D model from Sketchfab user Konta Johanna
Soudn file from FreeSound user Terhen
Both with creative commons licenses.