aframe-mario-star-component
v1.0.2
Published
Mario Star Texture component for A-Frame.
Downloads
2
Maintainers
Readme
aframe-mario-star-component
A Mario Star Texture component for A-Frame.
API
| Property | Description | Default Value | | --------- | ------------------------------ | ------------- | | waitTicks | ticks before next color change | 4 |
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');