A sample scene with an interactive jukebox that plays different songs based on the button you press
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
art
node_modules
sounds
.gitattributes Initial commit Aug 7, 2018
Jukebox.zip
LICENSE
README.md
package-lock.json
package.json
scene.js
scene.json
scene.tsx
tsconfig.json

README.md

sample scene jukebox

This scene is based on a tutorial that HardlyDifficult created for us.

It shows how to handle and animate buttons, as well as how to play sound files in a Decentraland scene.

You can find a full tutorial including video and written content here

Explore the scene: this link takes you to a copy of the scene deployed to a remote server where you can interact with it. You can also achieve the same by following the steps below and running it 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 the jukebox buttons to play songs. Each button plays a different song, and pressing one dissables all others.