Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
EaselJS Learning Module
Clone this wiki locally
The EaselJS Learning module is designed to create some convenience methods for automatically tracking events in EaselJS games.
"libraries": [ "components/springroll/dist/core.min.js", "components/springroll/dist/modules/learning.min.js" "components/springroll/dist/modules/easeljs-display.min.js", "components/springroll/dist/modules/easeljs-learning.min.js" ], "librariesDebug": [ "components/springroll/dist/core.js", "components/springroll/dist/modules/learning.js", "components/springroll/dist/modules/learning.css", "components/springroll/dist/modules/easeljs-display.js", "components/springroll/dist/modules/easeljs-learning.js" ]
This module has standard Application methods for getting the X and Y position and converting them into a normalized global position suitable for tracking with the Learning Module. See
Dwell Time Events
Dwell time is a common measure of duration that the user stays idle without making a selection or action. There's a utility for handling automatically tracking dwell time events. Check out DwellTimer for more information.
// Create DwellTimer, this will automatically // track events to the Learning module DwellTimer.create(playButton); // Remove the tracking of dwell time events DwellTimer.destroy(playButton);