home *** CD-ROM | disk | FTP | other *** search
/ Singles (French) / Singles-FrenchVersion-Win95.iso / data1.cab / Statemachine / aquarium.lua next >
Text File  |  2004-03-05  |  503b  |  24 lines

  1. -- aquarium state machine
  2.  
  3. beginStateMachine()
  4.  
  5.     onMsg("buildMenu", function(msg)
  6.         if (repairMenu()) then return end
  7.         
  8.         -- build the pie menu
  9.         clearPieMenu();
  10.         
  11.     end )
  12.     
  13.     onEnter(function(msg)
  14.         -- sendMsgThis("startAnimation");
  15.         this.startAnimation("Aquarium");
  16.     end )
  17.             
  18. --~     onMsg("startAnimation", function(msg)
  19. --~         local animationLength = this.startAnimation("Aquarium");
  20. --~         sendDelayedMsgThis("startAnimation", animationLength);
  21. --~     end )        
  22.     
  23. endStateMachine()
  24.