Download: http://archive.info-mac.org/dev/src/off ... demo-p.hqx
Offscreen Toys is a stand-alone sprite animation demo with full source code.
(Please don't confuse it with Offscreen Toys SAT, which looks the same but
uses Sprite Animation Toolkit.) I wrote this as a simple sprite demo, though
I got a bit over-ambitious, putting in a lot of not entirely trivial things.
You will find the following:
- The standard Mac event loop and event handling.
- Setting up GWorlds.
- Using CopyBits between GWorlds.
- Preloading graphics to GWorlds.
- Animation.
- Using BitMapToRegion to create a mask region for CopyBits.
- Collision detection.
- Collision handling.
Think and Metrowerks Pascal source-code.
/Ingemar Ragnemalm
Here's the code to have the finder open a control panel.
Just pass the control panel's fsspec to the openselection
function and it should open it. Actually I think it will
open any valid fsspec but I wouldn't bet on it. I haven't
stressed this code so there are probably some bugs in it.
Matt
--------------------------------------------
{ OpenSelection.p ported by Matthew Xavier Mora}
{ ported from C.K. Han's openselection.c code }
{ 09-11-92 }
unit openSelection;
interface
