3D Automatic Space-Door in Decentraland

Update 2020-01-23: Decentraland changed the API since this example. I’ll post an updated link if I port this.

I worked with the Decentraland team to come up with this tutorial how to synchronize state for multiple players across Websockets. There might be some things you want to do on your property which aren’t suitable for IPFS or the other communication channels. So, this is using Websockets inside a WebWorker.

sample sync websockets

Another interesting part of it is the proximity activation feature. By moving near the floor tiles they are going to light up. The door does the same. When users move closer it opens up.

Fork it here ➡️ https://github.com/tcrowe/sample-sync-websockets