@tlaukkan/aframe-arcade-controls-component

0.0.6 • Public • Published

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/

remix button

Usage


<script src="//cdn.rawgit.com/donmccurdy/aframe-extras/v4.1.1/dist/aframe-extras.min.js"></script>
<script src="https://unpkg.com/@tlaukkan/aframe-arcade-controls-component@0.0.2/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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.6
    1
    • latest

Version History

Package Sidebar

Install

npm i @tlaukkan/aframe-arcade-controls-component

Weekly Downloads

1

Version

0.0.6

License

ISC

Unpacked Size

27.2 kB

Total Files

14

Last publish

Collaborators

  • tlaukkan