Neatly Positioned Magazines
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@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

Install

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

DownloadsWeekly Downloads

5

Version

0.0.6

License

ISC

Unpacked Size

27.2 kB

Total Files

14

Last publish

Collaborators

  • avatar