<!DOCTYPE html>
<html>
  <head>
    <title>Interactions - 02 - Events</title>
    <script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
    <script src="https://unpkg.com/aframe-environment-component/dist/aframe-environment-component.min.js"></script>
    <script src="https://unpkg.com/aframe-event-set-component/dist/aframe-event-set-component.min.js"></script>
  </head>
  <body>
    <a-scene cursor="rayOrigin: mouse">
      <a-entity environment="preset: goldmine; dressingAmount: 20"></a-entity>
      <!-- click, mouseenter, mouseleave, mousedown, mouseup, and fusing-->

      <a-box
        position="-2 1.6 -2"
        color="red"
        event-set__mouseenter="color: blue"
        event-set__mouseleave="color: red"
        width="0.5"
        height="0.5"
        depth="0.5"
      ></a-box>


      <a-box
        position="2 1.6 -2"
        event-set__click="width: 0.7"
        width="0.5"
        height="0.5"
        depth="0.5"
      ></a-box>

      <a-camera>
        <a-cursor></a-cursor>
      </a-camera>
    </a-scene>
  </body>
</html>