Skip to content

Instantly share code, notes, and snippets.

@Lavesson
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lavesson/5979de218cdb4eb7714a to your computer and use it in GitHub Desktop.
Save Lavesson/5979de218cdb4eb7714a to your computer and use it in GitHub Desktop.
require "eventhandler"
-- Intro script timeline
function init()
eq.enqueue(0, player.lock)
eq.enqueue(0, player.hide)
eq.enqueue(1.0, player.phaseIn)
eq.enqueue(1.0, function() effect.screenShake(1, false) end)
eq.enqueue(3.1, function() dialog.say({"..."}) end)
eq.enqueue(3.5, player.standUp)
eq.enqueue(4.0, function() dialog.say({"... ?!", "Where am I ?", "What is this place ?", "I can't remember how I got here ..."}) end)
eq.enqueue(4.1, function() effect.screenShake(5, true) end)
eq.enqueue(6.0, function() dialog.say({"I need to get off this rooftop !"}) end)
eq.enqueue(6.1, player.pressRight)
eq.enqueue(7.5, player.releaseRight)
eq.enqueue(7.6, player.unlock)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment