nearnshaw / remote-scene2

0 stars 0 forks source link

Fixes round 1 #1

Open tcrowe opened 5 years ago

tcrowe commented 5 years ago

renamed: src/scene/scene.json -> scene.json deleted: src/scene/.DS_Store deleted: src/scene/.dclignore deleted: src/scene/.decentraland/project.json deleted: src/scene/build.json


npm rm ajv which is unused


Add dev script to package.json#scripts which runs the dcl start in development.

"dev-dcl": "dcl start --port 8834 || true"


./src/scene/scene.tsx

socket.on("connect", () => {
  this.setState({ connected: true });
+
+  const { id, username, position, rotation } = character;
+  socket.emit("character-join", { id, username, position, rotation });
});

./src/server/server.ts

-import { throttle } from "decentraland-rpc/lib/host/API";
+const throttle = require("lodash/throttle");
tcrowe commented 5 years ago

I updated the docs to reflect these changes. 👍🏻