@@ -26,7 +26,7 @@ mobile and desktop.
2626We'll start off with this skeleton HTML:
2727
2828``` html
29- <script src =" https://aframe.io/releases/1.0.3 /aframe.min.js" ></script >
29+ <script src =" https://aframe.io/releases/1.0.4 /aframe.min.js" ></script >
3030
3131<body >
3232 <a-scene >
@@ -49,7 +49,7 @@ our assets, and create a thin cylinder entity pointing to that texture:
4949<p data-height =" 265 " data-theme-id =" dark " data-slug-hash =" MpbXXe " data-default-tab =" html,result " data-user =" mozvr " data-embed-version =" 2 " data-pen-title =" Minecraft VR Demo (Part 1) " data-preview =" true " data-editable =" true " class =" codepen " >See the Pen <a href =" http://codepen.io/mozvr/pen/MpbXXe/ " >Minecraft VR Demo (Part 1)</a > by mozvr (<a href =" http://codepen.io/mozvr " >@mozvr</a >) on <a href =" http://codepen.io " >CodePen</a >.</p >
5050
5151``` html
52- <script src =" https://aframe.io/releases/1.0.3 /aframe.min.js" ></script >
52+ <script src =" https://aframe.io/releases/1.0.4 /aframe.min.js" ></script >
5353
5454<a-scene >
5555 <a-cylinder id =" ground" src =" https://cdn.aframe.io/a-painter/images/floor.jpg" radius =" 32" height =" 0.1" ></a-cylinder >
@@ -58,7 +58,7 @@ our assets, and create a thin cylinder entity pointing to that texture:
5858
5959### Preloading Assets
6060
61- [ assets ] : https://aframe.io/docs/1.0.3 /core/asset-management-system.html
61+ [ assets ] : https://aframe.io/docs/1.0.4 /core/asset-management-system.html
6262
6363Specifying a URL via the ` src ` attribute will load the texture at runtime.
6464Since network requests can negatively impact render performance, we can
@@ -76,7 +76,7 @@ Let's move our ground texture to `<a-assets>` to be preloaded using an
7676<p data-height =" 265 " data-theme-id =" dark " data-slug-hash =" LWbrBQ " data-default-tab =" html,result " data-user =" mozvr " data-embed-version =" 2 " data-pen-title =" Minecraft VR Demo (Part 2: Preloading Texture) " data-preview =" true " data-editable =" true " class =" codepen " >See the Pen <a href =" http://codepen.io/mozvr/pen/LWbrBQ/ " >Minecraft VR Demo (Part 2: Preloading Texture)</a > by mozvr (<a href =" http://codepen.io/mozvr " >@mozvr</a >) on <a href =" http://codepen.io " >CodePen</a >.</p >
7777
7878``` html
79- <script src =" https://aframe.io/releases/1.0.3 /aframe.min.js" ></script >
79+ <script src =" https://aframe.io/releases/1.0.4 /aframe.min.js" ></script >
8080
8181<a-scene >
8282 <a-assets >
@@ -89,7 +89,7 @@ Let's move our ground texture to `<a-assets>` to be preloaded using an
8989
9090## Adding a Background
9191
92- [ a-sky ] : https://aframe.io/docs/1.0.3 /primitives/a-sky.html
92+ [ a-sky ] : https://aframe.io/docs/1.0.4 /primitives/a-sky.html
9393[ flickr ] : https://www.flickr.com/groups/equirectangular/
9494
9595[ gradient ] : https://github.com/zcanter/aframe-gradient-sky
@@ -112,7 +112,7 @@ to match the ground:
112112<p data-height =" 265 " data-theme-id =" dark " data-slug-hash =" PpbaBL " data-default-tab =" html,result " data-user =" mozvr " data-embed-version =" 2 " data-pen-title =" Minecraft VR Demo (Part 3: Adding a Background) " data-preview =" true " data-editable =" true " class =" codepen " >See the Pen <a href =" http://codepen.io/mozvr/pen/PpbaBL/ " >Minecraft VR Demo (Part 3: Adding a Background)</a > by mozvr (<a href =" http://codepen.io/mozvr " >@mozvr</a >) on <a href =" http://codepen.io " >CodePen</a >.</p >
113113
114114``` html
115- <script src =" https://aframe.io/releases/1.0.3 /aframe.min.js" ></script >
115+ <script src =" https://aframe.io/releases/1.0.4 /aframe.min.js" ></script >
116116
117117<a-scene >
118118 <a-assets >
@@ -140,15 +140,15 @@ from scratch.
140140
141141### Entity-Component Pattern
142142
143- [ entity ] : https://aframe.io/docs/1.0.3 /core/entity.html
143+ [ entity ] : https://aframe.io/docs/1.0.4 /core/entity.html
144144
145145Every single object in an A-Frame scene is [ ` <a-entity> ` ] [ entity ] , which by itself
146146doesn't do anything, like an empty ` <div> ` . We plug in components (** not to be
147147confused with Web or React Components** ) to that entity to provide with
148148appearance, behavior , and logic.
149149
150- [ geometry ] : https://aframe.io/docs/1.0.3 /components/geometry.html
151- [ material ] : https://aframe.io/docs/1.0.3 /components/material.html
150+ [ geometry ] : https://aframe.io/docs/1.0.4 /components/geometry.html
151+ [ material ] : https://aframe.io/docs/1.0.4 /components/material.html
152152
153153For a box, we attach and configure A-Frame's basic [ geometry] and [ material]
154154components. Components are represented as HTML attributes, and component
@@ -190,7 +190,7 @@ AFRAME.registerComponent('random-color', {
190190});
191191```
192192
193- [ js ] : https://aframe.io/docs/1.0.3 /guides/using-javascript-and-dom-apis.html
193+ [ js ] : https://aframe.io/docs/1.0.4 /guides/using-javascript-and-dom-apis.html
194194
195195For the random color component, we want to set a random color on the entity
196196that this component is attached to. Components have a reference to the entity
@@ -237,7 +237,7 @@ and include it before the scene:
237237<p data-height =" 265 " data-theme-id =" dark " data-slug-hash =" ryWKqy " data-default-tab =" html,result " data-user =" mozvr " data-embed-version =" 2 " data-pen-title =" Minecraft VR Demo (Part 4: Random Color Component) " data-preview =" true " data-editable =" true " class =" codepen " >See the Pen <a href =" http://codepen.io/mozvr/pen/ryWKqy/ " >Minecraft VR Demo (Part 4: Random Color Component)</a > by mozvr (<a href =" http://codepen.io/mozvr " >@mozvr</a >) on <a href =" http://codepen.io " >CodePen</a >.</p >
238238
239239``` html
240- <script src =" https://aframe.io/releases/1.0.3 /aframe.min.js" ></script >
240+ <script src =" https://aframe.io/releases/1.0.4 /aframe.min.js" ></script >
241241<script src =" components/random-color.js" ></script >
242242
243243<a-scene >
@@ -300,7 +300,7 @@ to describe all the voxels in our scene.
300300
301301### Mixins
302302
303- [ mixin ] : https://aframe.io/docs/1.0.3 /core/mixins.html
303+ [ mixin ] : https://aframe.io/docs/1.0.4 /core/mixins.html
304304
305305We can create [ a mixin] [ mixin ] to define a reusable bundle of components.
306306Instead of ` <a-entity> ` , which adds an object to the scene, we'll describe it
@@ -309,7 +309,7 @@ using `<a-mixin>` which can be reused to create voxels like a prefab:
309309<p data-height =" 265 " data-theme-id =" dark " data-slug-hash =" OpbEaY " data-default-tab =" html,result " data-user =" mozvr " data-embed-version =" 2 " data-pen-title =" Minecraft VR Demo (Part 5: Mixins) " data-preview =" true " data-editable =" true " class =" codepen " >See the Pen <a href =" http://codepen.io/mozvr/pen/OpbEaY/ " >Minecraft VR Demo (Part 5: Mixins)</a > by mozvr (<a href =" http://codepen.io/mozvr " >@mozvr</a >) on <a href =" http://codepen.io " >CodePen</a >.</p >
310310
311311``` html
312- <script src =" https://aframe.io/releases/1.0.3 /aframe.min.js" ></script >
312+ <script src =" https://aframe.io/releases/1.0.4 /aframe.min.js" ></script >
313313<script src =" components/random-color.js" ></script >
314314<script src =" components/snap.js" ></script >
315315
@@ -392,7 +392,7 @@ add the component via a `<script>` tag and just set the `teleport-controls`
392392component on the controller on the entity:
393393
394394``` html
395- <script src =" https://aframe.io/releases/1.0.3 /aframe.min.js" ></script >
395+ <script src =" https://aframe.io/releases/1.0.4 /aframe.min.js" ></script >
396396<script src =" https://unpkg.com/aframe-teleport-controls@0.2.x/dist/aframe-teleport-controls.min.js" ></script >
397397
398398<!-- ... -->
@@ -429,7 +429,7 @@ that attaches the clicking laser to VR tracked controllers. Like the
429429` laser-controls ` component. This time to the right hand:
430430
431431``` html
432- <script src =" https://aframe.io/releases/1.0.3 /aframe.min.js" ></script >
432+ <script src =" https://aframe.io/releases/1.0.4 /aframe.min.js" ></script >
433433<script src =" https://unpkg.com/aframe-teleport-controls@0.2.x/dist/aframe-teleport-controls.min.js" ></script >
434434
435435<!-- ... -->
0 commit comments