Skip to content

Instantly share code, notes, and snippets.

@fendent
Created June 5, 2013 17:15
Show Gist options
  • Save fendent/5715568 to your computer and use it in GitHub Desktop.
Save fendent/5715568 to your computer and use it in GitHub Desktop.
Example of scripting in NextLevel
nl.script
.start(this)
.flag('talk', true)
.say(
"Welcome to the NextLevel demo test!",
"There's not much to see here right now but feel free to poke around."
)
.haltInput()
.pause(500).face(turnDirection1)
.pause(500).face(turnDirection2)
.pause(500).face(turnDirection1)
.pause(1000).face(direction)
.freeInput()
.say(
"...Err, frankly I'm not sure what that's supposed to mean.",
"But this guy gave me $5 to say it...",
"So I'll just be going over this way..."
)
.moveTo(7, 2, true)
.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment