nw-parser

1.2.0 • Public • Published

NW Parser

Parse .nw files into level objects

Installation

npm install nw-parser

Example

const nw = require('nw-parser');
 
nw.load('./test/levels/kirko.nw')
.then(level => {
    level.npcs.forEach(npc => {
        console.log(`Npc at (${npc.x}${npc.y})`);
    });
})
.catch(err => {
    console.log(`Couldn't load: ${err}`);
});

Todo

  • Parse gmap files
    • Load all levels and return them in array
  • Export as text

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    1
    • latest

Version History

Package Sidebar

Install

npm i nw-parser

Weekly Downloads

1

Version

1.2.0

License

Apache-2.0

Last publish

Collaborators

  • kirko