0.5.0 • Published 8 years ago
node-frotz v0.5.0
node-frotz
Node integration for frotz
const frotz=require('node-frotz');
var dint = new frotz.DFrotzInterface('./ifroot/dfrotz','./ifroot/ZORK1.DAT',"./ifroot/zk1.sav",frotz.ZorkFilter);
dint.iteration("look",(error,gameoutput)=>{
if(error)
{
console.log(error);
}
else
{
console.log(gameoutput);
}
process.exit(0);
});
Installation
This module requires the dfrotz binary. Please refer to https://github.com/DavidGriffith/frotz for instruction.
$ npm install node-frotz