home *** CD-ROM | disk | FTP | other *** search
/ CIRCUS / CIRCUS.iso / circus.mac / circus.dxr / 00022_ShooterSpriteClass.ls < prev    next >
Encoding:
Text File  |  1996-08-05  |  327 b   |  21 lines

  1. property ancestor, bullet
  2.  
  3. on birth me
  4.   set ancestor to birth(script "SpriteClass", me)
  5.   spritePosSet(ancestor, 200, 300)
  6.   spriteVelSet(ancestor, 1, 0)
  7.   return me
  8. end
  9.  
  10. on spriteUpdate me
  11.   spritePosSet(me, the mouseH, shooterY())
  12. end
  13.  
  14. on shooterY
  15.   return 380 + (the mouseV / 3)
  16. end
  17.  
  18. on shooterDead me
  19.   returnToMain()
  20. end
  21.