1.0.2 • Published 7 years ago

aframe-mario-star-component v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

aframe-mario-star-component

A Mario Star Texture component for A-Frame.

Example

Example here

API

PropertyDescriptionDefault Value
waitTicksticks before next color change4

Installation

Browser

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.2.0/aframe.min.js"></script>
  <script src="https://rawgit.com/casonclagg/aframe-mario-star-component/master/dist/aframe-mario-star-component.min.js"></script>
</head>

<body>
  <a-scene>
    <a-box width="1" height="1" depth="1" width="0 0 -2" mario-star="waitTicks: 4"></a-box>
  </a-scene>
</body>

npm

Install via npm:

npm install aframe-mario-star-component

Then register and use.

require('aframe');
require('aframe-mario-star-component');