1.9.3 • Published 5 years ago
@ion-cloud/compass v1.9.3
compass
JavaScript mapping classes and random generation algorithms JavaScript mapping classes and random generation algorithms

Table of Contents
Setup
Getting started is as easy as npm i @ion-cloud/compass --save and then importing the required modules into your app with import {Map,Sector,maps} from '@ion-cloud/compass'.
Please see code example here.
Usage
WebGL Canvas
import {EaselWebGL} from '@ion-cloud/easel';
import {Map,maps,BasicWebGLDisplay} from '@ion-cloud/compass';
const easel = new EaselWebGL(),
map = new Map({width:100,height:100}),
display = new BasicWebGLDisplay({easel,map}),
{generator} = maps.find(map=> map.name==='template - basic');
generator({map});
easel.onDraw = function(){ display.draw(); };
easel.redraw();2d Canvas
import {Easel} from '@ion-cloud/core';
import {Map,maps,BasicDisplay} from '@ion-cloud/compass';
const easel = new Easel(),
map = new Map({width:100,height:100}),
display = new BasicDisplay({easel,map}),
{generator} = maps.find(map=> map.name==='template - basic');
generator({map});
easel.onDraw = function(){ display.draw(); };
easel.redraw();Examples
Basic
Clustered Rooms - Default

Clustered Rooms - Small

Clustered Rooms - Large

Clustered Rooms - Long Hallways

Organized Rooms

Patterned Rooms

Templates
Template - Ancient Crypt

Template - Basic

Template - Caverns

Template - Crypt Catacombs

Template - Marsh

Template - Passages

Template - Standard Crypt

Template - Tunnels

Landforms
Alluvial Fan

Arroyo

Bornhardt

Braided Channel

Butte

Caldera

Caverns

Chine

Cliffs

Couloir

Cuesta

Draw

Hogback

Esker

Exhumed River Channel

Fjord

Floodplain

Glen

Gulch

Gully

Marsh

Mogote

Ravine

Strath

Tepui

Turlough

Uvala

Wadi

1.9.3
5 years ago
1.9.2
5 years ago
1.9.1
5 years ago
1.9.0
5 years ago
1.8.0
5 years ago
1.7.3
5 years ago
1.7.2
5 years ago
1.7.1
5 years ago
1.7.0
6 years ago
1.6.4
6 years ago
1.6.3
6 years ago
1.6.2
6 years ago
1.6.1
6 years ago
1.6.0
6 years ago
1.5.4
6 years ago
1.5.3
6 years ago
1.5.2
6 years ago
1.5.1
6 years ago
1.5.0
6 years ago
1.3.2
6 years ago
1.4.0
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.1
6 years ago
1.1.2
6 years ago
1.1.0
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago