@tlaukkan/aframe-arcade-controls-component
v0.0.6
Published
A-Frame Arcade Controls Component
Downloads
18
Maintainers
Readme
A-Frame Arcade Controls Component
Keyboard controls for walking, jumping and colliding on all meshes on scene.
Demo
https://aframe-arcade-controls-demo.glitch.me/
Usage
<script src="//cdn.rawgit.com/donmccurdy/aframe-extras/v4.1.1/dist/aframe-extras.min.js"></script>
<script src="https://unpkg.com/@tlaukkan/[email protected]/dist/index.js"></script>
...
<a-entity id="player" position="0 2 0" arcade-controls="jumpStartSpeed: 5;">
<a-entity camera look-controls></a-entity><a-entity class="right-controller"></a-entity><a-entity class="left-controller" rotation="0 45 0"></a-entity>
</a-entity>
Develop
npm run start:dev
Publish package
First publish
npm publish --access public
Update
npm run dist
npm version patch
npm publish