Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Latest commit

 

History

History
45 lines (30 loc) · 1.09 KB

File metadata and controls

45 lines (30 loc) · 1.09 KB

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/[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