A platform that moves when the player stands on one of the switches. To view the scene, please visit here.
Try and get the coin that's floating in the air. Use your mouse to look around and W A S D keys on your keyboard to move forward, left, backward and right respectively. To jump, press the Space key.
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
- Starting project files: https://github.com/takJohn/switchboard-platforms-start
- Finished project files: https://github.com/decentraland-scenes/switchboard-platforms
- To view .gltf and .glb files: https://sandbox.babylonjs.com/
- Resource for sounds: https://freesound.org/
- Learn about game objects: https://docs.decentraland.org/development-guide/game-objects/
- Pre-built tools for building Decentraland scenes: https://github.com/decentraland/decentraland-ecs-utils
- Information about the math function used in this tutorial: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/abs
- Decentraland's homepage: https://decentraland.org/
- Examples and tutorials to help you get started building Decentraland scenes: https://github.com/decentraland-scenes/Awesome-Repository
- coinPickup.mp3 modified from https://freesound.org/people/MATRIXXX_/sounds/402766/
- switch.mp3 modified from https://freesound.org/people/VKProduktion/sounds/217498/