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

A-Frame Arcade Controls Component provides keyboard controls for walking, jumping and colliding on all meshes on scene.

Notifications You must be signed in to change notification settings

tlaukkan/aframe-arcade-controls-component

Repository files navigation

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

About

A-Frame Arcade Controls Component provides keyboard controls for walking, jumping and colliding on all meshes on scene.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published