Skip to content

Instantly share code, notes, and snippets.

@InternetExplorer
Created April 3, 2012 14:55
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 InternetExplorer/2292656 to your computer and use it in GitHub Desktop.
Save InternetExplorer/2292656 to your computer and use it in GitHub Desktop.
Linking Impact and EaselJS "Tick" Functions
// Create the Easel Stage
this.stage = new Stage(this.canvas);
// Set the stage to not autoClear
// This keeps EaselJS from erasing all of what Impact has already drawn to canvas.
this.stage.autoClear = false;
// Update Easel in sync with Impact
tick: function() {
// Call Easel's update function to draw all of its queued changes
// Before the frame ends and Impact takes control again
this.stage.update();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment