decentraland-scenes / Jukebox

A scene where you can play different songs by pressing buttons on a jukebox.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jukebox

A scene where you can play different songs by pressing buttons on a jukebox.

This scene shows you

  • How to play audio from a file
  • How to use systems to move entities gradually
  • How to use a Lerp() function to gradually move something from a starting point to an ending point over a given time
  • How to handle click events
  • How to arrange entities into parents and children to position them relative to each other
  • How to create custom components to store custom data
  • How to use component groups to handle multiple entities

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 the buttons on the jukebox to select different songs. Any other currently playing song is stopped and is button is unpressed.

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.

About

A scene where you can play different songs by pressing buttons on a jukebox.

License:Apache License 2.0


Languages

Language:TypeScript 89.2%Language:Dockerfile 10.8%