Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getIconSheet(userOptions.iconSheetUrl, function(iconSheet) {
- console.log("icon sheet loaded");
- slotMachineController.init(iconSheet, function() {
- console.log("slot machine init'd");
- animationController.bringIn(function() {
- console.log("animations brought in");
- audio.volume = 0.5;
- audio.play();
- slotMachineController.spin(function(win) {
- if(win === true) {
- audio.volume = 1;
- animationController.jackpot(function() {
- animationController.takeOut();
- });
- } else {
- animationController.takeOut();
- if(userOptions.useDefaultSounds=="yes"){
- audio.pause();
- }
- }
- });
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement