crowds/slides/js/main.js

23 lines
476 B
JavaScript
Raw Normal View History

2018-03-27 17:39:08 +00:00
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);
}