home *** CD-ROM | disk | FTP | other *** search
/ Internet 1996 World Exposition / park.org.s3.amazonaws.com.7z / park.org.s3.amazonaws.com / Japan / Panasonic- / events / gento / Panachan.dcr / 00034.ls < prev    next >
Encoding:
Text File  |  2017-09-21  |  3.2 KB  |  105 lines

  1. global stagewidth, stageheight, stagehtop, stagehbottom, stagehleft, stagehright, stagehtop2, stagehbottom2, stagehleft2, stagehright2, startholeh, startholev, startholeh2, startholev2, panah, panav, panacatchh, panacatchv, panapicuph, panapicupv, panaboundh, panaboundv, panawalkcount, panadir, pananowh, pananowv, cl_pana, cl_sonic, cl_fun_city, cl_olympic, cl_yawara_chan, cl_time_capusule, defsphanafront, defsphanaback, defspgomfront, defspgomback, defsphead, defrighteye, deflefteye
  2.  
  3. on panainit
  4.   panalistinit()
  5.   set panadir to 1
  6.   set stagewidth to the stageRight - the stageLeft
  7.   set stageheight to the stageBottom - the stageTop
  8.   set defspgomback to 7
  9.   set defsphanaback to 8
  10.   set defsphead to 9
  11.   set defrighteye to 10
  12.   set deflefteye to 11
  13.   set defspgomfront to 29
  14.   set defsphanafront to 30
  15.   set startholeh to 480
  16.   set startholev to 303
  17.   set startholeh2 to 480
  18.   set startholev2 to 359
  19.   set stagehtop to the locV of sprite defsphead - the top of sprite defsphead
  20.   set stagehbottom to stageheight - (the bottom of sprite defsphead - the locV of sprite defsphead)
  21.   set stagehleft to the locH of sprite defsphead - the left of sprite defsphead
  22.   set stagehright to stagewidth - (the right of sprite defsphead - the locH of sprite defsphead)
  23.   set stagehtop2 to 25
  24.   set stagehbottom2 to stageheight - 60
  25.   set stagehleft2 to 35
  26.   set stagehright2 to stagewidth - 35
  27.   set the visible of sprite defsphanafront to 1
  28.   set the visible of sprite defspgomfront to 1
  29.   repeat with n = 7 to 30
  30.     puppetSprite(n, 1)
  31.   end repeat
  32.   repeat with n = 31 to 32
  33.     puppetSprite(n, 1)
  34.     movelochv(n, -200, -200)
  35.   end repeat
  36.   set the visible of sprite defsphanafront to 1
  37.   set the visible of sprite defspgomfront to 1
  38.   set the visible of sprite defrighteye to 1
  39.   set the visible of sprite deflefteye to 1
  40. end
  41.  
  42. on panadoneb
  43.   set panah to []
  44.   set panav to []
  45.   set panacatchh to []
  46.   set panacatchv to []
  47.   set panaboundh to []
  48.   set panaboundv to []
  49.   set cl_pana to []
  50.   set cl_sonic to []
  51.   set cl_fun_city to []
  52.   set cl_olympic to []
  53.   set cl_yawara_chan to []
  54.   set cl_time_capusule to []
  55.   puppetSprite(7, 0)
  56.   puppetSprite(8, 0)
  57.   puppetSprite(9, 0)
  58.   puppetSprite(29, 0)
  59.   puppetSprite(30, 0)
  60.   repeat with n = 31 to 32
  61.     movelochv(n, -200, -200)
  62.     puppetSprite(n, 0)
  63.   end repeat
  64.   set the visible of sprite defsphanafront to 1
  65.   set the visible of sprite defspgomfront to 1
  66.   set the visible of sprite defrighteye to 1
  67.   set the visible of sprite deflefteye to 1
  68. end
  69.  
  70. on panadone
  71.   set panah to []
  72.   set panav to []
  73.   set panacatchh to []
  74.   set panacatchv to []
  75.   set panaboundh to []
  76.   set panaboundv to []
  77.   set cl_pana to []
  78.   set cl_sonic to []
  79.   set cl_fun_city to []
  80.   set cl_olympic to []
  81.   set cl_yawara_chan to []
  82.   set cl_time_capusule to []
  83.   repeat with n = 7 to 30
  84.     puppetSprite(n, 0)
  85.   end repeat
  86.   repeat with n = 31 to 32
  87.     puppetSprite(n, 0)
  88.   end repeat
  89.   set the visible of sprite defsphanafront to 1
  90.   set the visible of sprite defspgomfront to 1
  91.   set the visible of sprite defrighteye to 1
  92.   set the visible of sprite deflefteye to 1
  93. end
  94.  
  95. on Wait tend
  96.   set tend to the ticks + tend
  97.   repeat while the ticks < tend
  98.   end repeat
  99. end
  100.  
  101. on movelochv sp, h, v
  102.   set the locH of sprite sp to h
  103.   set the locV of sprite sp to v
  104. end
  105.