Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. getIconSheet(userOptions.iconSheetUrl, function(iconSheet) {
  2. console.log("icon sheet loaded");
  3.  
  4. slotMachineController.init(iconSheet, function() {
  5. console.log("slot machine init'd");
  6.  
  7. animationController.bringIn(function() {
  8. console.log("animations brought in");
  9. audio.volume = 0.5;
  10. audio.play();
  11.  
  12. slotMachineController.spin(function(win) {
  13.  
  14.  
  15. if(win === true) {
  16. audio.volume = 1;
  17. animationController.jackpot(function() {
  18. animationController.takeOut();
  19. });
  20. } else {
  21. animationController.takeOut();
  22. if(userOptions.useDefaultSounds=="yes"){
  23. audio.pause();
  24. }
  25. }
  26.  
  27. });
  28.  
  29. });
  30.  
  31. });
  32.  
  33. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement