home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / multi / singing / baritone.dxr / 00021_consts.ls < prev    next >
Encoding:
Text File  |  1996-06-12  |  1.4 KB  |  85 lines

  1. on ContentsSprite
  2.   return 2
  3. end
  4.  
  5. on InHandSprite
  6.   return 40
  7. end
  8.  
  9. on RHSfirstSocket
  10.   return 10
  11. end
  12.  
  13. on LHSfirstSocket
  14.   return 20
  15. end
  16.  
  17. on maxPileSize
  18.   return 5
  19. end
  20.  
  21. on RHSpageX
  22.   return 460
  23. end
  24.  
  25. on RHSpageY
  26.   return 250
  27. end
  28.  
  29. on LHSpageX
  30.   return 170
  31. end
  32.  
  33. on LHSpageY
  34.   return RHSpageY()
  35. end
  36.  
  37. on PageDepthOffset
  38.   return 3
  39. end
  40.  
  41. on MatteInk
  42.   return 8
  43. end
  44.  
  45. on InitBitMap theSprite
  46.   puppetSprite(theSprite, 1)
  47.   set the stretch of sprite theSprite to 0
  48.   set the type of sprite theSprite to 1
  49.   set the ink of sprite theSprite to MatteInk()
  50.   set the foreColor of sprite theSprite to 255
  51.   set the backColor of sprite theSprite to 0
  52. end
  53.  
  54. on KillBitMap theSprite
  55.   set the type of sprite theSprite to 0
  56. end
  57.  
  58. on InstallBitMap theSprite, theCast, theH, theV
  59.   InitBitMap(theSprite)
  60.   set the castNum of sprite theSprite to the number of cast theCast
  61.   set the locH of sprite theSprite to theH
  62.   set the locV of sprite theSprite to theV
  63. end
  64.  
  65. on ListLen l
  66.   set c to 0
  67.   repeat with i in l
  68.     set c to c + 1
  69.   end repeat
  70.   return c
  71. end
  72.  
  73. on CreatePiles pageList
  74.   global LHSpile, RHSpile, PagesLoaded
  75.   set RHSpile to birth(script "Pile", RHSfirstSocket(), RHSpageX(), RHSpageY())
  76.   set LHSpile to birth(script "Pile", LHSfirstSocket(), LHSpageX(), LHSpageY())
  77.   reset(LHSpile)
  78.   reset(RHSpile)
  79.   repeat with pageName in pageList
  80.     push(RHSpile, pageName)
  81.     put pageName
  82.   end repeat
  83.   set PagesLoaded to 1
  84. end
  85.