1.2.0 • Published 7 years ago

nw-parser v1.2.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
7 years ago

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
1.2.0

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago