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