decentraland-scenes / piano-floor-example-scene

A piano floor where you walk on the keys to play.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Piano Floor Example Scene

demo of piano-floor-example-scene running in preview.

A piano floor where the player walks on the keys to play.

demo

This scene shows you:

  • How to play sounds from files
  • How to change the material of a primitive shape
  • How to use the trigger area from the Utils library to activate something when a player walks over it
  • How to keep players synced by using the messagebus to communicate each player's actions to others

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

Step on the keys to activate each note.

If there are multiple players in the scene, they should all hear what each other plays. You can simulate this by opening two browser tabs with the same preview.

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 piano floor where you walk on the keys to play.


Languages

Language:TypeScript 93.1%Language:Dockerfile 6.9%