JSPM

@mapgen/mapgen

1.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q28979F
  • License MIT

A pixel-art map generator

Package Exports

  • @mapgen/mapgen

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mapgen/mapgen) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@mapgen/mapgen

Generate random pixel map.

Usage

import { mapgen } from '@mapgen/mapgen';
import { TerminalRenderer } from '@mapgen/renderer-terminal';
import { terminal } from 'terminal-kit';

const renderer = new TerminalRenderer(terminal);

mapgen(renderer);

Result

View in terminal:

Rendered to console

View in canvas:

Rendered to canvas