Skip to content

Instantly share code, notes, and snippets.

@MattesGroeger
Created February 1, 2011 14:39
Show Gist options
  • Save MattesGroeger/805939 to your computer and use it in GitHub Desktop.
Save MattesGroeger/805939 to your computer and use it in GitHub Desktop.
Example
if (tutorialMode)
{
var tutorialChain:ITutorialActionChain = TutorialChainBuilder.create(context)
.addAction(new WaitAction(2))
.addConcurrentChain()
.addAction(new MoveMapAction(new GridPoint(-6, -5), 3))
.addSequentialChain()
.addAction(new WaitAction(1))
.addAction(new ZoomMapAction(1, 2))
.finalizeSubChain()
.finalizeSubChain()
.addSequentialChain()
.addAction(new MoveMapAction(new GridPoint(6, -5), 2))
.addConcurrentChain()
.addAction(new ZoomMapAction(0.5, 3))
.addAction(new MoveMapAction(new GridPoint(0, 0), 2))
.finalizeSubChain()
.finalizeSubChain()
.getChain();
tutorialChain.start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment