storyeng

1.0.4 • Public • Published
#!/usr/bin/env node
 
const s = require('storyeng')
let p
 
= new s.Part('start')
p.onenter = `Welcome to my story game.`
p.oninput = `Name`
 
= new s.Part('Name')
p.onenter = `Name's Norman. What's yours?`
p.oninput = e => {
  e.data.name = e.line
  s.tell('Well, nice to meet you {name}.')
}
 
s.start()

Package Sidebar

Install

npm i storyeng

Weekly Downloads

61

Version

1.0.4

License

BSD-2-Clause

Last publish

Collaborators

  • robmuh