Skip to content

Commit

Permalink
Updated getting started guide
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenjameslee committed Sep 27, 2017
1 parent 0d4aa21 commit fb28680
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/getting-started-local.md
Expand Up @@ -32,7 +32,7 @@ Now let's setup the required dependencies. Create a file called `package.json` a
},
"author": "YOUR_NAME",
"dependencies": {
"networked-aframe": "^0.2.0"
"networked-aframe": "^0.3.0"
}
}
```
Expand Down Expand Up @@ -262,7 +262,7 @@ Now you have a basic networked WebVR scene up and running. But there's a lot mor

### Hand Controllers

To add hand controllers follow this example: [INSERT CONTORLLER EXAMPLE]
To add hand controllers follow the [tracked controllers example](https://github.com/haydenjameslee/networked-aframe/blob/master/server/static/tracked-controllers.html).

### WebRTC

Expand All @@ -284,18 +284,18 @@ To define synced components we introduce the concept of a NAF `schema`. These sc
Here's an example schema that syncs the position and rotation of the root entity, while syncing the color of the avatar's head:

```Javascript
var avatarSchema = {
NAF.schemas.add({
template: '#avatar-template',
components: [
'position',
'rotation',
{
selector: '.head',
component: 'material'
component: 'material',
property: 'color'
}
]
};
NAF.schemas.add(avatarSchema);
});
```

In the `basic.html` example this is used in combination with [ngokevin's Randomizer component](https://github.com/ngokevin/kframe/tree/master/components/randomizer) to give each avatar's head a synced randomized color.
Expand Down

0 comments on commit fb28680

Please sign in to comment.