crowds/slides/js/main.js
2018-03-27 13:39:08 -04:00

23 lines
No EOL
476 B
JavaScript

window.onload = function(){
// Setting up the main stuff
window.simulations = new Simulations();
window.slideshow = new Slideshow();
window.pencil = new Pencil();
// Initializing the Mouse
Mouse.init(document.body);
// Animation loop IS update loop, whatever
function update(){
simulations.update();
slideshow.update();
pencil.update();
window.requestAnimationFrame(update);
}
window.requestAnimationFrame(update);
// First slide!
slideshow.goto(0);
}