Parse .nw files into level objects
npm install nw-parser
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}`);
});
- Parse gmap files
- Load all levels and return them in array
- Export as text