@amarillion/helixgraph

A collection of graph algorithms for game development

Usage no npm install needed!

<script type="module">
  import amarillionHelixgraph from 'https://cdn.skypack.dev/@amarillion/helixgraph';
</script>

README

helixgraph

A library of path finding & graph algorithms for game development, for JavaScript ES6

This library includes

  • path finding algorithms such as A*, dijkstra, and breadth-first-search
  • a random maze generation algorithm

The algorithms are suitable for tilemaps, regular grids, as well as (non-regular) graphs.

Installation

npm install @amarillion/helixgraph

TypeScript definitions are included

Live demo

Play with the live examples
Source code for all examples is on github.

Documentation

Source

Source code: https://github.com/amarillion/helixgraph/
License: MIT