a-game icon indicating copy to clipboard operation
a-game copied to clipboard

Essential game components for A-Frame!

A-Game!

Essential game components for A-Frame!

<html>
  <head>
    <script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/a-game.min.js"></script>
  </head>
  <body>
    <a-scene physics>
      <a-entity include="./scenes/_assets.html"></a-entity>
      <a-player locomotion grabbing></a-player>
      <a-main include="./scenes/level1.html">
        <a-box floor color="gray" width="32" height="0.25" depth="32"></a-box>
      </a-main>
    </a-scene>
  </body>
</html>

Demo!

Primitives

  • a-hand
  • a-main
  • a-player

Components

  • grabbing
    • button
    • climbable
    • fingerflex
    • grabbable
    • receptacle
  • include
  • limit
  • locomotion
    • floor
    • start
    • wall
  • onevent
  • onstate
  • physics
    • body
    • joint
    • shape
  • script
  • trigger