Skip to content

Instantly share code, notes, and snippets.

@toddpi314
Created June 7, 2012 22:20
Show Gist options
  • Save toddpi314/2892022 to your computer and use it in GitHub Desktop.
Save toddpi314/2892022 to your computer and use it in GitHub Desktop.
GameClock_ThreeOneFour_Usage
for (var i = 0; i <= 100; i++) {
var clock = new DeepElement.ThreeOneFour.Clock();
var self = this;
clock.addEvent('tick', function(td) {
console.log('tick');
var doSomethingWithSelf = self;
});
clock.start();
clock.stop();
delete clock;
}​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment