home *** CD-ROM | disk | FTP | other *** search
/ 1,000 Games / Disc1.iso / ADVEN / STRIPME / STRIPME.EXE / SPOTME.DXR / 00061.ls < prev    next >
Encoding:
Text File  |  1996-01-11  |  3.8 KB  |  146 lines

  1. on startMovie
  2.   global gPlayer, gTimeOut
  3.   set gTimeOut to 100
  4.   set gPlayer to 1
  5. end
  6.  
  7. on init
  8.   global gFace, gEye, gMouth, gFaceUp, gEyeUp, gMouthUp, gFaceDown, gEyeDown, gMouthDown, gCountDown
  9.   set gFace to 33 + random(6)
  10.   set gEye to 39 + random(9)
  11.   set gMouth to 48 + random(8)
  12.   set gFaceUp to 33 + random(6)
  13.   set gEyeUp to 39 + random(9)
  14.   set gMouthUp to 48 + random(8)
  15.   set gFaceDown to 33 + random(6)
  16.   set gEyeDown to 39 + random(9)
  17.   set gMouthDown to 48 + random(8)
  18.   setFace()
  19.   set gCountDown to 10
  20. end
  21.  
  22. on setFace
  23.   global gFace, gEye, gMouth, gFaceUp, gEyeUp, gMouthUp, gFaceDown, gEyeDown, gMouthDown
  24.   set the castNum of sprite 1 to gFace
  25.   set the castNum of sprite 2 to gEye
  26.   set the castNum of sprite 3 to gMouth
  27.   set the castNum of sprite 4 to gFace
  28.   set the castNum of sprite 5 to gEye
  29.   set the castNum of sprite 6 to gMouth
  30.   set the castNum of sprite 7 to gFace
  31.   set the castNum of sprite 8 to gEye
  32.   set the castNum of sprite 9 to gMouth
  33. end
  34.  
  35. on startGame
  36.   global gFaceUp, gEyeUp, gMouthUp, gFaceDown, gEyeDown, gMouthDown
  37.   set the castNum of sprite 4 to gFaceUp
  38.   set the castNum of sprite 5 to gEyeUp
  39.   set the castNum of sprite 6 to gMouthUp
  40.   set the castNum of sprite 7 to gFaceDown
  41.   set the castNum of sprite 8 to gEyeDown
  42.   set the castNum of sprite 9 to gMouthDown
  43.   setPos(11, 240, 25)
  44.   startTimer()
  45. end
  46.  
  47. on setPos sp, x, y
  48.   set the locH of sprite sp to x
  49.   set the locV of sprite sp to y
  50. end
  51.  
  52. on animateBomb
  53.   global gTimeOut, gCountDown
  54.   if the timer > gTimeOut then
  55.     set gCountDown to gCountDown + 1
  56.     set the castNum of sprite 11 to cast gCountDown
  57.     if gCountDown = 32 then
  58.       puppetSound("Platzen")
  59.       go(the frame + 1)
  60.     end if
  61.     startTimer()
  62.   end if
  63. end
  64.  
  65. on checkIt
  66.   global gFace, gEye, gMouth, gFaceUp, gEyeUp, gMouthUp, gFaceDown, gEyeDown, gMouthDown
  67.   if ((gFace = gFaceUp) and (gEye = gEyeUp) and (gMouth = gMouthUp)) or ((gFace = gFaceDown) and (gEye = gEyeDown) and (gMouth = gMouthDown)) then
  68.     return 1
  69.   else
  70.     return 0
  71.   end if
  72. end
  73.  
  74. on changePart
  75.   global gFace, gEye, gMouth, gFaceUp, gEyeUp, gMouthUp, gFaceDown, gEyeDown, gMouthDown
  76.   if (the clickOn = 4) or (the clickOn = 7) then
  77.     if random(2) = 1 then
  78.       set gFaceUp to 33 + random(6)
  79.       set the castNum of sprite 4 to gFaceUp
  80.       sound stop 1
  81.       if gFaceUp = gFace then
  82.         puppetSound("Gut")
  83.       else
  84.         puppetSound("Schlecht")
  85.       end if
  86.       updateStage()
  87.     else
  88.       set gFaceDown to 33 + random(6)
  89.       set the castNum of sprite 7 to gFaceDown
  90.       sound stop 1
  91.       if gFaceDown = gFace then
  92.         puppetSound("Gut")
  93.       else
  94.         puppetSound("Schlecht")
  95.       end if
  96.       updateStage()
  97.     end if
  98.   end if
  99.   if (the clickOn = 5) or (the clickOn = 8) then
  100.     if random(2) = 1 then
  101.       set gEyeUp to 39 + random(9)
  102.       set the castNum of sprite 5 to gEyeUp
  103.       sound stop 1
  104.       if gEyeUp = gEye then
  105.         puppetSound("Gut")
  106.       else
  107.         puppetSound("Schlecht")
  108.       end if
  109.       updateStage()
  110.     else
  111.       set gEyeDown to 39 + random(9)
  112.       set the castNum of sprite 8 to gEyeDown
  113.       sound stop 1
  114.       if gEyeDown = gEye then
  115.         puppetSound("Gut")
  116.       else
  117.         puppetSound("Schlecht")
  118.       end if
  119.       updateStage()
  120.     end if
  121.   end if
  122.   if (the clickOn = 6) or (the clickOn = 9) then
  123.     if random(2) = 1 then
  124.       set gMouthUp to 48 + random(8)
  125.       set the castNum of sprite 6 to gMouthUp
  126.       sound stop 1
  127.       if gMouthUp = gMouth then
  128.         puppetSound("Gut")
  129.       else
  130.         puppetSound("Schlecht")
  131.       end if
  132.       updateStage()
  133.     else
  134.       set gMouthDown to 48 + random(8)
  135.       set the castNum of sprite 9 to gMouthDown
  136.       sound stop 1
  137.       if gMouthDown = gMouth then
  138.         puppetSound("Gut")
  139.       else
  140.         puppetSound("Schlecht")
  141.       end if
  142.       updateStage()
  143.     end if
  144.   end if
  145. end
  146.