home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / VPR_DATA / POLYCILD / PliCil01.DIR / 00016_Script_AsoWinMainEngin < prev    next >
Text File  |  1997-01-06  |  3KB  |  107 lines

  1. --1995 BUN SADAKA --SuperPresentationTool_Ver.1.0.2/1995/10/15
  2. --ノOノ酣[ノoノ肚ネ褂
  3. global gTimer,gSprKey,gSprLen
  4. global gLxList,gLyList,gStarCast,gMode
  5. global gShootingStar,gKeys
  6. --鞣茣筱
  7. on Ginit
  8.   preLoadCast 1, 23
  9.   set gTimer = 0
  10.   set gKey=""
  11.   Set gSprKey = 21 --ノpノyノbノgヌンヌネノXノvノ篷Cノgヌテ腴駭燿咊
  12.   Set gSprLen = 6 --ノpノyノbノgヌンヌネノXノvノ篷Cノgヌテ-1
  13.   set gStarCast=121--Random(4)*20+81
  14.   set gTimer=0
  15.   --
  16.   --臚ノXノvノ篷Cノgヌテノpノyノbノg筱
  17.   repeat with n = gSprKey  to gSprKey+gSprLen--ノXノ^ナ[ノJナ[ノ\ノ翡AノXノ^ナ[ノZノCノoナ[
  18.     puppetSprite n,True
  19.   end repeat 
  20.   SetStar ("on",31,12,1,0)
  21.   star2(the mouseH,the mouseV)
  22. end
  23.  
  24. on turn vSpr--簫]
  25.   if vSpr=0 then
  26.     set aDefLocH =the mouseH
  27.     set aDefLocV =the mouseV
  28.   else 
  29.     set aDefLocH =the locH of sprite vSpr
  30.     set aDefLocV =the locV of sprite vSpr-50
  31.   end if
  32.   set the locH of sprite gSprKey =aDefLocH
  33.   set the locV of sprite gSprKey =aDefLocV
  34.   set aHankei=64
  35.   set aRadian=0
  36.   repeat while aHankei>0  
  37.     if aRadian>=1200 then
  38.       set aRadian=0
  39.     end if
  40.     set aRadian=aRadian+5
  41.     
  42.     set aPointH=sin(aRadian/aHankei)*aHankei+aDefLocH
  43.     set aPointV=cos(aRadian/aHankei)*aHankei+aDefLocV
  44.     star2( aPointH,aPointV)
  45.     set aHankei=aHankei-25.6
  46.   end repeat
  47. --  if vSpr=0 then
  48. --    repeat with n = gSprKey  to gSprKey+gSprLen--ノXノ^ナ[ノJナ[ノ\ノ翡AノXノ^ナ[ノZノCノoナ[
  49. --      puppetSprite n,False
  50. --    end repeat
  51. --    CURSOR -1
  52. --  end if
  53. end
  54.  
  55.  
  56. on keys
  57.   if the key=RETURN then
  58.     nothing
  59.   end if
  60.   set gKeys=the key
  61. end
  62.  
  63. on star--ノXノ^ナ[ノJナ[ノ\ノ(ノXノvノ篷Cノgノ鐱@ナ[ノWノ睨ナjtヌエ
  64.   if mousedown() then--ノXノ^ナ[ノNノ菲bノN
  65.     puppetSound  1,3
  66.     turn (0)
  67.   end if
  68.   star2(the mouseH,the mouseV)
  69.   set aLx= getAt(gLxList,1)-THE MOUSEH
  70.   
  71.   if aLx>150 then
  72.     puppetSound 1,1
  73.   else if  aLx<-150 then
  74.     puppetSound 2,2
  75.   else if getAt(gLyList,1)-the MOUSEV=-120 then
  76.     puppetSound 1,3
  77.   end if
  78.   mMove gShootingStar
  79. end
  80.  
  81.  
  82. on star2 vPointH,vPointV--ノXノ^ナ[ノJナ[ノ\ノ翹GノノWノ
  83.   set gLxList=[]
  84.   set gLyList=[]
  85.   set aEndSpr=gSprKey+gSprLen
  86.   repeat with n= gSprKey to aEndSpr-1
  87.     add gLxList,the locH of sprite n
  88.     add gLyList,the locV of sprite n
  89.   end repeat
  90.   set the locH of sprite gSprKey =vPointH
  91.   set the locV of sprite gSprKey =vPointV
  92.   repeat with n=gSprKey+1 to aEndSpr
  93.     set aNum=n-gSprKey
  94.     set the locH of sprite n =getAt(gLxList,aNum)
  95.     set the locV of sprite n =getAt(gLyList,aNum)
  96.   end repeat
  97.   repeat with k = 0 to 6
  98.     set the castNum of sprite k+gSprKey+1 =member (gStarCast+k+4) of CastLib 2
  99.     updateStage
  100.   end repeat
  101.   set the castNum of sprite gSprKey =gStarCast+2
  102.   updateStage
  103. end
  104.  
  105.  
  106.  
  107.