-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from poeticAndroid/glitch
v0.15
- Loading branch information
Showing
4 changed files
with
78 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,19 @@ | |
```html | ||
<script type="text/javascript" src="https://aframe.io/releases/1.0.4/aframe.min.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/donmccurdy/[email protected]/dist/aframe-physics-system.min.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.14/components/utils.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.14/components/a-locomotion.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.14/components/a-items.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.14/components/a-include.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.14/components/a-editor.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.14/components/a-tiledwalls.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.14/components/a-door.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.15/components/utils.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.15/components/a-locomotion.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.15/components/a-items.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.15/components/a-include.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.15/components/a-editor.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.15/components/a-tiledwalls.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/poeticAndroid/poetic-aframe@v0.15/components/a-door.js"></script> | ||
``` | ||
|
||
[Click for demo!](https://poetic-aframe.glitch.me/) | ||
|
||
[Try out the scene editor!](https://poetic-aframe.glitch.me/editor.html) | ||
|
||
## Documentation | ||
|
||
- [a-locomotion.js](https://github.com/poeticAndroid/poetic-aframe/blob/master/components/a-locomotion.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,68 @@ | ||
<a-entity id="world"> | ||
<a-sky src="https://cdn.glitch.com/e956e2ed-f877-4602-a395-a2e234731117%2Fskybox0.png?v=1592248851267" scale="-1 1 1"> | ||
</a-sky> | ||
<a-sky src="https://cdn.glitch.com/e956e2ed-f877-4602-a395-a2e234731117%2Fskybox0.png?v=1592248851267" scale="-1 1 1"> </a-sky> | ||
<a-entity start></a-entity> | ||
<a-box rotation="-90 0 0" src="https://cdn.aframe.io/a-painter/images/floor.jpg" width="16" height="16" depth="0.01" | ||
floor></a-box> | ||
<a-box rotation="-90 0 0" src="https://cdn.aframe.io/a-painter/images/floor.jpg" width="16" height="16" depth="0.01" floor></a-box> | ||
<a-box color="#fc9" position="0 1.55 -4" rotation="10 11 12.000000000000002" height="0.4" grabbable></a-box> | ||
<a-box color="#c9f" position="-0.55 0.55 -4" rotation="10 11 12.000000000000002" grabbable></a-box> | ||
<a-box color="#9fc" position="1.55 0.55 -3" scale="0.5 0.5 0.5" grabbable></a-box> | ||
<a-gltf-model grabbable src="#cat" position="0 1 -3" rotation="1 2 4" class></a-gltf-model> | ||
<a-gltf-model src="#bunny" position="0 2 -3" scale="0.03125 0.03125 0.03125" class></a-gltf-model> | ||
<a-gltf-model class grabbable="freeOrientation:false" | ||
<a-box color="#9fc" position="3 1 -1.5" scale="0.5 0.5 0.5" grabbable rotation="0 -45 0"></a-box> | ||
<a-gltf-model grabbable src="#cat" position="0 1 -3" rotation="1 2 4"></a-gltf-model> | ||
<a-gltf-model src="#bunny" position="0 2 -3" scale="0.03125 0.03125 0.03125"></a-gltf-model> | ||
<a-gltf-model | ||
grabbable="freeOrientation:false" | ||
src="https://cdn.glitch.com/e956e2ed-f877-4602-a395-a2e234731117%2Fgun.glb?v=1596117169794" | ||
sound="on:usedown; src:#shot; poolSize:8;" position="0 0.1 -1" rotation="1 2 4" scale="0.05 0.05 0.05"> | ||
</a-gltf-model> | ||
<a-box src="#granite" position="0 1 5" depth="0.125" floor wall class></a-box> | ||
<a-entity class door position="1 1 5" rotation="0 90 0"> | ||
<a-box wall material="repeat: 1 2" thickness="0.125" position="0.5 0 0" | ||
src="https://cdn.glitch.com/e956e2ed-f877-4602-a395-a2e234731117%2Fseamless_texture_rovere_wood_parquet_DIFFUSE.jpg?v=1592051409386"> | ||
<a-box position="0.4 0 0" color="#421" scale="0.125 0.0625 0.25"></a-box> | ||
sound="on:usedown; src:#shot; poolSize:8;" | ||
position="0 0.1 -1" | ||
rotation="1 2 4" | ||
scale="0.05 0.05 0.05" | ||
></a-gltf-model> | ||
<a-box src="#granite" position="4.5 0.5 4" depth="0.125" floor wall rotation="0 90 0"></a-box> | ||
<a-entity door position="4.5 1 2.5" rotation="0 -90 0"> | ||
<a-box | ||
wall | ||
material="repeat: 1 2" | ||
thickness="0.125" | ||
position="0.5 0 0" | ||
src="https://cdn.glitch.com/e956e2ed-f877-4602-a395-a2e234731117%2Fseamless_texture_rovere_wood_parquet_DIFFUSE.jpg?v=1592051409386" | ||
><a-box position="0.4 0 0" color="#421" scale="0.125 0.0625 0.25"></a-box> | ||
</a-box> | ||
</a-entity> | ||
<a-box floor visible="false" position="0 -10 0" scale="1024 1 1024" | ||
animation="dur: 20000; property: position; to: 0 -0.6 0; dir: alternate; loop:true;"></a-box> | ||
</a-entity> | ||
<a-box | ||
floor | ||
visible="false" | ||
position="0 -10 0" | ||
scale="1024 1 1024" | ||
animation="dur: 20000; property: position; to: 0 -0.6 0; dir: alternate; loop:true;" | ||
></a-box> | ||
<a-box src="#granite" position="4.5 1.5 4" depth="0.125" floor wall rotation="0 90 0"></a-box> | ||
<a-box src="#granite" position="4.5 2.5 4" depth="0.125" floor wall rotation="0 90 0"></a-box> | ||
<a-box src="#granite" position="4.5 2.5 3" depth="0.125" floor wall rotation="0 90 0"></a-box> | ||
<a-box src="#granite" position="4.5 2.5 2" depth="0.125" floor wall rotation="0 90 0"></a-box> | ||
<a-box src="#granite" position="4.5 1.5 2" depth="0.125" floor wall rotation="0 90 0"></a-box> | ||
<a-box src="#granite" position="4.5 0.5 2" depth="0.125" floor wall rotation="0 90 0"></a-box> | ||
<a-box src="#granite" position="5 0.5 4.5" depth="0.125" floor wall rotation="0 180 0"></a-box> | ||
<a-box src="#granite" position="5 1.5 4.5" depth="0.125" floor wall rotation="0 180 0"></a-box> | ||
<a-box src="#granite" position="5 2.5 4.5" depth="0.125" floor wall rotation="0 180 0"></a-box> | ||
<a-box src="#granite" position="5 2.5 1.5" depth="0.125" floor wall></a-box> | ||
<a-box src="#granite" position="5 1.5 1.5" depth="0.125" floor wall></a-box> | ||
<a-box src="#granite" position="5 0.5 1.5" depth="0.125" floor wall></a-box> | ||
<a-box src="#granite" position="6 2.5 1.5" depth="0.125" floor wall></a-box> | ||
<a-box src="#granite" position="6 1.5 1.5" depth="0.125" floor wall></a-box> | ||
<a-box src="#granite" position="6 0.5 1.5" depth="0.125" floor wall></a-box> | ||
<a-box src="#granite" position="6 2.5 4.5" depth="0.125" floor wall rotation="0 -180 0"></a-box> | ||
<a-box src="#granite" position="6 1.5 4.5" depth="0.125" floor wall rotation="0 -180 0"></a-box> | ||
<a-box src="#granite" position="6 0.5 4.5" depth="0.125" floor wall rotation="0 180 0"></a-box> | ||
<a-box src="#granite" position="6.5 2.5 2" depth="0.125" floor wall rotation="0 -90 0"></a-box> | ||
<a-box src="#granite" position="6.5 1.5 2" depth="0.125" floor wall rotation="0 -90 0"></a-box> | ||
<a-box src="#granite" position="6.5 0.5 2" depth="0.125" floor wall rotation="0 -90 0"></a-box> | ||
<a-box src="#granite" position="6.5 2.5 4" depth="0.125" floor wall rotation="0 -90 0"></a-box> | ||
<a-box src="#granite" position="6.5 1.5 4" depth="0.125" floor wall rotation="0 -90 0"></a-box> | ||
<a-box src="#granite" position="6.5 0.5 4" depth="0.125" floor wall rotation="0 -90 0"></a-box> | ||
<a-box src="#granite" position="6.5 2.5 3" depth="0.125" floor wall rotation="0 -90 0"></a-box> | ||
<a-box src="#granite" position="6.5 0.5 3" depth="0.125" floor wall rotation="0 -90 0"></a-box> | ||
<a-box src="#granite" position="6 3 2" depth="0.125" floor wall rotation="90 -180 0"></a-box> | ||
<a-box src="#granite" position="5 3 2" depth="0.125" floor wall rotation="90 90 -90"></a-box> | ||
<a-box src="#granite" position="6 3 4" depth="0.125" floor wall rotation="90 135 -45"></a-box> | ||
<a-box src="#granite" position="5 3 4" depth="0.125" floor wall rotation="90 -90 90"></a-box> | ||
<a-box src="#granite" position="5 3 3" depth="0.125" floor wall rotation="90 -45 135"></a-box> | ||
<a-box src="#granite" position="6 3 3" depth="0.125" floor wall rotation="90 -90 90"></a-box | ||
></a-entity> |