Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 786 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 786 Bytes

Primitives

Reusable entities / primitives.

  • <a-grid/>: Flat grid, with subdivisions at regular intervals.
  • <a-hexmap/>: Hexagon map loaded from a JSON file, using von-grid.
  • <a-ocean/>: Ocean with animated waves.
  • <a-tube/>: Tube following a custom path.

Usage

Basic:

<a-grid></a-grid>

<a-ocean></a-ocean>

<a-tube path="5 0 5, 5 0 -5, -5 0 -5" radius="0.5" material="color: red"></a-tube>

<!-- Generate a hexmap here: http://vonwolfehaus.github.io/von-grid/editor/ -->
<a-hexgrid src="hexmap.json"
           material="color: #47BF92"></a-hexgrid>

Custom:

<a-grid src="custom-image.png"></a-grid>
<a-ocean color="#92E2E2" width="25" depth="25" density="15" speed="2"></a-ocean>