home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20246 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.2 KB

  1. Xref: sparky comp.sys.mac.programmer:20246 comp.sys.mac.games:13445
  2. Path: sparky!uunet!caen!uwm.edu!csd4.csd.uwm.edu!bowden
  3. From: bowden@csd4.csd.uwm.edu (John William Bowden)
  4. Newsgroups: comp.sys.mac.programmer,comp.sys.mac.games
  5. Subject: Code for drawing a sprite desired.
  6. Date: 23 Dec 1992 16:19:32 GMT
  7. Organization: Computing Services Division, University of Wisconsin - Milwaukee
  8. Lines: 20
  9. Distribution: world
  10. Message-ID: <1ha3ikINN7tm@uwm.edu>
  11. NNTP-Posting-Host: 129.89.7.4
  12. Keywords: Bring out the sprites!!!
  13. Originator: bowden@csd4.csd.uwm.edu
  14.  
  15. Hiya,
  16.  
  17.  THere is alot of interest in writing games for the mac (myself included.)
  18. If there's a kindly sagelike programmer out there with a little time on
  19. his/her hands, could someone share a technique for copying a sprite from an
  20. offscreen grafPort?
  21.  
  22.  Here's what I have in mind.  A short program that loads in a PICT containing
  23. a sprite and its mask into an offscreen grafPort and the copyBits the sprite
  24. into a visible window.
  25.  
  26.  I suspect that anyone who would provide us neophytes with this little
  27. tidbit would earn the undying gratitude of many a ThinkC tinkerer.
  28.  
  29.  I may just be dense, but pouring over sample code and IM, it is not at all
  30. obvious to me how to use copyBits.
  31.  
  32. Thanks,
  33. John
  34.  
  35.