home *** CD-ROM | disk | FTP | other *** search
/ Fuji Wa La Te I Ka - Hyakunin Isshu Karuta / KARUTA.bin / wins / finetown.dir / 00002_Script_2 < prev    next >
Text File  |  1995-11-10  |  4KB  |  137 lines

  1. global Dis,moveSPlist,wari
  2.  
  3. on upleft 
  4.   set the castNum of sprite 25 to 36
  5.   set the castNum of sprite 24 to 44
  6.   repeat with moveSP in moveSPlist
  7.     set the locH of sprite moveSP to the locH of sprite moveSP + Dis / wari
  8.     set the locV of sprite moveSP to the locV of sprite moveSP + Dis / wari
  9.   end repeat
  10.   if the locH of sprite 2 > 600 and the locV of sprite 2 > 450 then
  11.     repeat with moveSP in moveSPlist
  12.       set the locH of sprite moveSP = 600
  13.       set the locV of sprite moveSP = 450
  14.     end repeat
  15.     upleftCD
  16.   end if
  17.   if the locH of sprite 2 > 600 then
  18.     repeat with moveSP in moveSPlist
  19.       set the locH of sprite moveSP = 600
  20.     end repeat
  21.     upleftCD
  22.   end if 
  23.   if the locV of sprite 2 > 450 then
  24.     repeat with moveSP in moveSPlist
  25.       set the locV of sprite moveSP = 450
  26.     end repeat
  27.     upleftCD
  28.   end if 
  29.   
  30.   if (the locH of sprite 25 > 256 and the locV of sprite 25 > 192) or ┬
  31. the locH of sprite 25 > 256 or the locV of sprite 25 > 192 then
  32.     upleftCD
  33.   end if
  34.   updateStage
  35. end
  36.  
  37. on upright
  38.   set the castNum of sprite 25 to 37
  39.   set the castNum of sprite 24 to 45
  40.   repeat with moveSP in moveSPlist
  41.     set the locH of sprite moveSP to the locH of sprite moveSP - Dis / wari
  42.     set the locV of sprite moveSP to the locV of sprite moveSP + Dis / wari
  43.   end repeat
  44.   if the locH of sprite 2 < -88 and the locV of sprite 2 > 450 then
  45.     repeat with moveSP in moveSPlist
  46.       set the locH of sprite moveSP = -88
  47.       set the locV of sprite moveSP = 450
  48.     end repeat
  49.     uprightCD
  50.   end if
  51.   if the locH of sprite 2 < -88 then
  52.     repeat with moveSP in moveSPlist
  53.       set the locH of sprite moveSP = -88
  54.     end repeat
  55.     uprightCD
  56.   end if 
  57.   if the locV of sprite 2 > 450 then
  58.     repeat with moveSP in moveSPlist
  59.       set the locV of sprite moveSP = 450
  60.     end repeat
  61.     uprightCD
  62.   end if 
  63.   
  64.   if (the locH of sprite 25 < 256 and the locV of sprite 25 > 192) or ┬
  65. the locH of sprite 25 < 256 or the locV of sprite 25 > 192 then
  66.     uprightCD
  67.   end if
  68.   updateStage
  69. end
  70.  
  71. on downleft 
  72.   set the castNum of sprite 25 to 38
  73.   set the castNum of sprite 24 to 46
  74.   repeat with moveSP in moveSPlist
  75.     set the locH of sprite moveSP to the locH of sprite moveSP + Dis / wari
  76.     set the locV of sprite moveSP to the locV of sprite moveSP - Dis / wari
  77.   end repeat
  78.   if the locH of sprite 2 > 600 and the locV of sprite 2 < -66 then
  79.     repeat with moveSP in moveSPlist
  80.       set the locH of sprite moveSP = 600
  81.       set the locV of sprite moveSP = -66
  82.     end repeat
  83.     downleftCD
  84.   end if
  85.   if the locH of sprite 2 > 600 then
  86.     repeat with moveSP in moveSPlist
  87.       set the locH of sprite moveSP = 600
  88.     end repeat
  89.     downleftCD
  90.   end if 
  91.   if the locV of sprite 2 < -66 then
  92.     repeat with moveSP in moveSPlist
  93.       set the locV of sprite moveSP = -66
  94.     end repeat
  95.     downleftCD
  96.   end if 
  97.   
  98.   if (the locH of sprite 25 > 256 and the locV of sprite 25 < 192) or ┬
  99. the locH of sprite 25 > 256 or the locV of sprite 25 < 192 then
  100.     downleftCD
  101.   end if
  102.   updateStage
  103. end
  104.  
  105. on downright
  106.   set the castNum of sprite 25 to 39
  107.   set the castNum of sprite 24 to 47
  108.   repeat with moveSP in moveSPlist
  109.     set the locH of sprite moveSP to the locH of sprite moveSP - Dis / wari
  110.     set the locV of sprite moveSP to the locV of sprite moveSP - Dis / wari
  111.   end repeat
  112.   if the locH of sprite 2 < -88 and the locV of sprite 2 < -66 then
  113.     repeat with moveSP in moveSPlist
  114.       set the locH of sprite moveSP = -88
  115.       set the locV of sprite moveSP = -66
  116.     end repeat
  117.     downrightCD
  118.   end if
  119.   if the locH of sprite 2 < -88 then
  120.     repeat with moveSP in moveSPlist
  121.       set the locH of sprite moveSP = -88
  122.     end repeat
  123.     downrightCD
  124.   end if 
  125.   if the locV of sprite 2 < -66 then
  126.     repeat with moveSP in moveSPlist
  127.       set the locV of sprite moveSP = -66
  128.     end repeat
  129.     downrightCD
  130.   end if 
  131.   
  132.   if (the locH of sprite 25 < 256 and the locV of sprite 25 < 192) or ┬
  133. the locH of sprite 25 < 256 or the locV of sprite 25 < 192 then
  134.     downrightCD
  135.   end if
  136.   updateStage
  137. end