@kckckc/isleward-map-gen
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

Isleward map image generator

Generates Isleward map images from spritesheets, map data, and clientConfig

Todo

  • Handle spritesheet downloading (from iwd server automatically?)
  • Handle hiddenRooms/interior hiders

Usage

Programmatic: setClientConfig(clientConfig), renderMap(dataFromOnGetMap, outpath, options)

Manually getting data:

  • Download spritesheets
  • addons.events.on('onGetMap', (e) => console.log(JSON.stringify(e))) then enter map
  • require(['js/system/globals'], (g) => {console.log(JSON.stringify(g.clientConfig))})

Run: yarn && yarn dev

Misc

  • Types generated with json2ts (neat!)

Readme

Keywords

none

Package Sidebar

Install

npm i @kckckc/isleward-map-gen

Weekly Downloads

1

Version

2.0.7

License

MIT

Unpacked Size

16.7 kB

Total Files

10

Last publish

Collaborators

  • kckckc