A scene that uses a server and a REST API to sync a scene state amongst multiple users. You can paint pixels in a mural that other users can see. The colors of each pixel are stored in a remote server.
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.
.vscode Initial commit Jan 6, 2019
bin apply best practices Jan 9, 2019
screenshot Initial commit Jan 6, 2019
server apply best practices Jan 9, 2019
src various optimizations Jan 21, 2019
textures Initial commit Jan 6, 2019
.dclignore Initial commit Jan 6, 2019
.gitattributes Initial commit Jan 6, 2019
.gitignore Initial commit Jan 6, 2019
Dockerfile Initial commit Jan 6, 2019
LICENSE Initial commit Jan 6, 2019
README.md various optimizations Jan 21, 2019
package-lock.json Initial commit Jan 6, 2019
package.json version to latest Jan 21, 2019
scene.json Initial commit Jan 6, 2019
tsconfig.json Initial commit Jan 6, 2019

README.md

Remote mural

A scene that uses a server and a REST API to sync a scene state amongst multiple users. You can paint pixels in a mural that other users can see. The colors of each pixel are stored in a remote server.

  • Create a REST server
  • Call REST API

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.

Run the REST server

(In another terminal window)

# from the project root
cd server

# install node dependencies
npm install

# start the server
npm start

Run the scene preview

# from the project root
cd scene

# install node dependencies
npm install

# start the preview
dcl start

Open multiple browser tabs by copying the preview URL. Interact with the door on one tab to see that it also changes on other tabs as well.

Any dependencies are installed and then the CLI will open the scene in a new browser tab automatically.

Usage

Click on a color on the palette on the right. Once a color is selected, you can paint the pixels on the wall with that color. Other users will see the same wall, painted with the same colors.

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.