Whether you are looking for a routine to tell you how many colors are on a user's main monitor, or the complete source code for a killer game that uses GWorlds or sprite animation, you'll find it here. There's hundreds of thousands of lines of source code, in C, C++, Pascal, and other languages. You'll find complete applications, code resources, Control Panels, Extensions, Libraries, and Snippets. Most code examples are built using CodeWarrior, Symantec, or MPW environments.
----------
3D Buttons CDEF 1.0b6
Zig Zichterman
zig_zichterman@novell.com
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
3D Buttons is a CDEF that implements the 3D control interface as proposed in develop issue 15. It also supports tristate checkboxes and radio buttons, as well as icon buttons.
Public domain
----------
AIFF_DSP_v22
Ben Denckla
bdenckla@fas.harvard.edu
Tricks CD:More Source:C/C++:
ftp://ftp.cs.jhu.edu/pub/dsp/
__________
AIFF_DSP, an audio IFF file DSP programmer's framework, provides a complete set of routines which deal with all aspects of AIFF file handling.
----------
Animation Tutorial
Sam Davidoff
Bernard256@aol.com
Tricks CD:More Source:C/C++:
AOL:
__________
Did you ever want to learn about CopyBits() animation? Do you wonder what the heck is CopyBits() anyway? Well this file is for you, it gives a little information on the theory of CopyBits() animation and then provides some well documented source code that creates a simple screen saver by animating icons. By the way this requires 32 bit QuickDraw. I've tested this in 1 to 16 bit color and it works though you have to increase the memory for 16 bit.
----------
AntiAlias
Ingemar Ragnemalm
ingemar@lysator.liu.se
Tricks CD:More Source:Pascal:
__________
AntiAlias shows how to make anti-aliased text. Based on a demo by David Phillip Oster.
----------
Arashi 1.1
Juri Munkki
jmunkki@hut.fi
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
Arashi is an arcade game that supports 256 colors or grays. It is based on the vector-drawn graphics of popular arcades hits.
----------
AsychSound
Steve Maller
steve@maller.com
Tricks CD:More Source:C/C++:
ftp://ftpbio.bgsu.edu/alt.sources.mac/
__________
AsynchSound is a function that, passed an FSSpec to a sound file (like those the Finder can plan), opens it and plays the sound in it asynchronously. It uses the partial resource reading routine so that it can read the handle into temporary memory instead of having the program's application heap take the hit.
----------
AsynchSounds
Thomas Reed
reed@medicine.wustl.edu
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
AsynchSounds allows you to play sounds asynchronously in a flexible manner. Also includes routines to play sounds from disk directly.
----------
Brain Damage
Ingemar Ragnemalm
ingemar@lysator.liu.se
Tricks CD:More Source:Pascal:
__________
Brain Damage is an old joke program by Scott T Boyd, making fun of MS-DOS computers. Figuring out how to quit is the funniest part.
----------
Carl O's Term
Ingemar Ragnemalm
ingemar@lysator.liu.se
Tricks CD:More Source:Pascal:
__________
Carl O's Term is a terminal emulator originally written in Turbo Pascal by Carl R. Osterwald. This version is enhanced quite a bit. Think Pascal source. Useful if you want to learn about serial communication.
----------
Chess++ 3.0.1
Steve Bushell
python@tiac.net
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
Chess++ is a program written in Symantec C++/TCL 1.1.3 which, as you might guess, plays chess. It was used as the demo project for the introduction of Symantec's new THINK Project Manager at the World Wide Developer's Conference (WWDC) in California in early May, 1993.
----------
CModalProgress 1.1
Graham Heathcote
heathcot@bnr.ca
Tricks CD:More Source:C/C++:
ftp://ftpbio.bgsu.edu/alt.sources.mac/vol-09/
__________
CModalProgress is a C++ class that generates the standard progress dialog. It draws the usual one that fills up as well as the barberpole (meat grinder).
----------
CopyBits Demo 1.5
Kenneth Worley
KNEworley@aol.com
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
CopyBits Demo is an example project that gives several examples of using CopyBits to copy pictures both on screen and between offscreen Graphics Worlds and an onscreen window (as well as between GWorlds). It also shows how to use CopyBits to accomplish a "fade to black" on a specific area of the screen (rather than the whole monitor). Wait! There's more! It also demonstrates the difference between "flickering" regular animation and smooth animation using GWorlds (and demonstrates how to do it). And, with version 1.5, it does an image to image fade using CopyBits! All the code and the project file to build the demo app is included (Metrowerks CodeWarrior C).
----------
DialogControls
Todd Clements
tclement@hmc.edu
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
DialogControls shows how to do different things with dialogs: Set the window font and size, patch NewControl() so that you have controls in the window font, use Popup Menus in modal dialogs, use AppendDITL() to achieve a spiffy preferences box, use styled text edit records from resources to display text, write a filter for a ModalDialog, and use MovableModal dialog boxes.
----------
Digital Money™ Dev Kit
Tricks CD:More Source:Libraries:
/info-mac/dev/src/
__________
----------
Digital Money™ Dev Kit
Digital Money, Inc.
digitalmoney@aol.com
Tricks CD:More Source:Libraries:
/info-mac/dev/src/
__________
Digital Money AutoPay is a software module that you can insert in your own programs. It allows users to pay for your software with a credit card. They can pay instantaneously through a modem, through a voice telephone call, or through the mail. You don't need a credit card merchant account. AutoPay is great for both shareware authors and for software publishers who want to distribute their products through on-line channels.
----------
E-Z Progress Bar 1.0a
Michael Terry
mat101@aol.com
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
E-Z Progress Bar is a class dedicated to creating and maintaining a window with a progress bar in it.
----------
Finder ProgressBar 1.1
Chris Larson
cklarson@engr.ucdavis.edu
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
Finder ProgressBar is a CDEF which mimics the progress bar used in the Finder. This was intended as an EXACT copy of the progress bars used in the Finder (at least visually), so the color's are hardcoded, etc.
----------
FlightSim
Chris Moll
isschris@issserv3.lbl.gov
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
FlightSim is the source code for a program to demonstrate how to do 3D perspective drawing and clipping.
----------
Gamma Fade 1.1.2
Matt Slot
fprefect@engin.umich.edu
Tricks CD:More Source:C/C++:
ftp://ftpbio.bgsu.edu/alt.sources.mac/vol-04/
__________
Gamma Fade is a library that allows you to do smooth (gamma) fading on color monitors. It is intended as a general tool for manipulating the Gamma tables of graphics devices.
----------
Glypha III
John Calhoun
jcalhoun@databank.com
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
Glypha is a game that is very similar to Joust.
----------
graph3D
Chris Moll
isschris@issserv3.lbl.gov
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
Graph3D is a 3D graphing program that demostrates how to do non-perspective 3D plotting and mathematical expression parsing. All math is floating point, though some of the code for fixed point math remains.
----------
Infinity Windoid 3.0
Troy Gaul
tgaul@halcyon.com
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
Infinity Windoid is a WDEF that provides a 'windoid' appearance to windows. It includes projects for both THINK C and CodeWarrior.
----------
Kant Generator Pro 1.2
Mark Pilgrim
f8dy@netaxs.com
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
Kang Generator Pro generates pseudo-Kantian doctrine based on context-free grammar and Kant's vocabulary in the Critique of Pure Reason. Also lets you build and test your own generation modules. Includes CodeWarrior project.
----------
Legend
Bohm S. Kim
kimbs@aol.com
Tricks CD:More Source:C/C++:
__________
Legend is a typical dungeon game. Move, get treasure, and fire at the monsters. The bar in the control panel on the right shows your current health. This is always going down and will decrease quite a bit if you get hit. The bar will start flashing red to let you know your health is low. When it reaches zero the game is over. The object of the game is to stay alive and complete each level by reaching the stairway (or other exit) of each level. Often the exits are behind locked gates; you must find the corresponding key to unlock the gate and proceed.
Shareware $15
----------
MacWT 0.77
Bill Hayden
bmoc1@aol.com
Tricks CD:More Source:C/C++:
http://grove.ufl.edu/~nikolsw/
__________
MacWT is an easy-to-use 3-D graphics engine, based on the cross-platform wt engine originally developed by Chris Laurel. MacWT was built from a base of wt 0.05c1 with the exception of those changes from b to c1 which broke the floor/ceiling rendering code. The first version of MacWT was created by Turlough O'Connor in early 1994. While the current MacWT is based on Mr. O'Connor's MacWT 0.04, little of the original code remains.
----------
mgraph
Ralph Gonzalez
gonzalez@crab.rutgers.edu
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
mgraph is a library which lets you supplement a stdio ANSI C application with a graphics window, without having to learn a complex graphics package (like X Window or the Mac Toolbox).
----------
MicroAnimationDemo
Ingemar Ragnemalm
ingemar@lysator.liu.se
Tricks CD:More Source:Pascal:
__________
MicroAnimationDemo is a minimal sprite animation demo. REALLY minimal.
----------
Mine Sweeper
William Edward Woody
woody@alumni.cco.caltech.edu
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
Mine Sweeper is a simple game. The object of the game is to find all the mines in the playing field. Includes THINK C project.
----------
MovieScroll
Ingemar Ragnemalm
ingemar@lysator.liu.se
Tricks CD:More Source:Pascal:
__________
MovieScroll is a demo showing how to make scrolling titles as in movies. Based on a demo by Kenneth A. Long.
----------
NewWatch
Ingemar Ragnemalm
ingemar@lysator.liu.se
Tricks CD:More Source:Pascal:
__________
NewWatch was a "chain code" project in alt.sources.mac, where this old watch demo was modified and enhanced by several programmers. It has some interest as a demo of how to use regions.
----------
Notes Demo
Andrew Plotkin
erkyrath@cmu.edu
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
Notes Demo is a primitive example of a sampled note synthesizer, ported to CodeWarrior. It allocates four channels and sets a sampled sound on each, by sending a soundCmd; then it sends the sequences of notes to each, using the SndPlay function to send the freqDurationCmds in the SND resources 9008-9011. Then it sits and waits for the user to hit RETURN. (Once started, the sounds play asynchronously.)
----------
offscreen2
Ralph Gonzalez
gonzalez@crab.rutgers.edu
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
offscreen2 is a set of routines demonstrates offscreen drawing.
----------
OffscreenToys 1.3
Ingemar Ragnemalm
ingemar@lysator.liu.se
Tricks CD:More Source:Pascal:
__________
OffscreenToys is a fairly advanced sprite demo, with collision handling. This is a stand-alone demo, NOT to be confused with "OffscreenToys SAT", which looks the same but uses SAT (Sprite Animation Toolkit). OffscreenToys uses only the standard Toolbox calls. The "boost" version preloads the sprite face to a GWorld, in order to speed up drawing.
It demonstrates the following techniques:
• How to use "glue" code for backwards compatibility
• How to use GWorlds
• How to speed up drawing by preloading cicn resources to GWorlds
• How to handle collisions in a realistic way
• How to make flicker-free sprite animation
• How to load cicn resources
• How to handle events, windows and menus
• Some fundamental QuickDraw
• How to measure frame rate
It also has enough hooks (mousedowns, keydowns) for being useable as a shell program.
----------
OneTest
Ingemar Ragnemalm
ingemar@lysator.liu.se
Tricks CD:More Source:Pascal:
__________
OneTest is a small Mac programming shell. The file "OneEvents.p" contains reusable code, which rarely needs any changes. That makes it much easier to use as a shell than shells like Skel.
----------
Parrot 1.0b1
Bernie Bernstein
bernie_bernstein@powertalk.apple.com
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
Parrot will play back things it hears. From the author: I wrote this hack for a Halloween party. This was in the "confusion" room. A microphone picked up sounds that guests made, and at random intervals, they heard their own voices played at other parts of the room. The hack listens to the sound input device and remembers everything it hears (that is loud enough) and then plays those things back in a random order. If your Mac has stereo capability, then it also randomly chooses a speaker to play each sound. The more memory the program has allocated, the more sounds it remembers.
----------
Peter's Final Project
Peter Mattis
petm@soda.csua.berkeley.edu
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
Peter's Final Project demonstrates a texture mapped maze in which you can move around. Several features: The mazes can be randomly generated, the view can be any size as long as its square, the maze can be any size, depth shading, a form of psuedo-Gouraud shading for the textures, initial support for 3d objects that are Gouraud shaded, collision detection between objects and walls.
Distributed under GNU General Public License.
----------
picture
Ralph Gonzalez
gonzalez@crab.rutgers.edu
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
Picture is a free class library for displaying and animating three-dimensional color wire-frame drawings, although it may also be used for displaying two-dimensional drawings. It supports (1) segmentation of graphical entities, (2) multiple viewpoints and multiple projection windows, and (3) animation with an independent frame of reference for each (nested) segment.
----------
PlayerPRO 4.4.1
Antoine Rosset
rosset@dial.eunet.ch
Tricks CD:More Source:Libraries:
/info-mac/dev/src/
__________
PlayerPRO is a set of routines that allow you to play MOD files in your programs. MOD files are special multi-channel sound files that are popular on the Amiga computer. Includes both 68K and PPC projects for CodeWarrior. Also includes a Think C 7 project.
Freeware
----------
Pop Up Menu CDEF
Stuart Chesire
chesire@cs.stanford.edu
Tricks CD:More Source:C/C++:
ftp://bolo.stanford.edu/
__________
Pop Up Menu CDEF was written because the author was frustrated by the lack of a good popup menu CDEF. That was five years ago, and now a popup menu CDEF is built into system software. However, this one has been thoroughly tested, and will give you backward compatibility with pre-System 7 users.
----------
PWarp
Ingemar Ragnemalm
ingemar@lysator.liu.se
Tricks CD:More Source:Pascal:
__________
PWarp is a simple animation, much like the old "Stars DA" from the old days of the Mac. Demonstrates fundamental QuickDraw. In color, but works on b/w Macs as well.
----------
Rotater 2.8
Craig Kloeden
craig@raru.adelaide.edu.au
Tricks CD:More Source:C/C++:
ftp://raru.adelaide.edu.au/rotater/
__________
Rotater is a program that reads a set of 3-dimensional points and lines and plots them in a window. The image can then be rotated with the mouse in real time.
----------
Safari II 1.4
John Gallaugher
jmgallau@syr.edu
Tricks CD:More Source:C/C++:
AOL:MGM:Arcade #1:
__________
Safari is a simple game written in C. Demonstrates techniques that you might want to use when creating your own game.
----------
SAT 2.3b4
Ingemar Ragnemalm
ingemar@lysator.liu.se
Tricks CD:More Source:Libraries:
/info-mac/dev/src/
__________
SAT (Sprite Animation Toolkit) is a library which makes it a lot easier to create sprite-based animation, especially for games.
----------
Skel
Ingemar Ragnemalm
ingemar@lysator.liu.se
Tricks CD:More Source:Pascal:
__________
Skel is the classic Mac programming shell, here in a somewhat modernized version.
----------
sndDemo
Ingemar Ragnemalm
ingemar@lysator.liu.se
Tricks CD:More Source:Pascal:
__________
sndDemo is a simple sound demo originally by Marv Westrom. Demonstrates how to play asynch sound with callback procedures.
----------
SWar
Ron Kaps
RonAKaps@aol.com
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
SWar is the source code for an unfinished arcade game. It was envisioned as a simple, mindless, multi-player network game, but the author got sidetracked and never completed it. Right now, the program lets one player fly the blue ship, with three other ships just placed in random trajectories. The object is simply to shoot the other players. Use the left/right arrow keys to rotate the blue ship, use the up arrow to thrust, and use the control key to fire missiles.
----------
SWar
Ingemar Ragnemalm
ingemar@lysator.liu.se
Tricks CD:More Source:Pascal:
__________
SWar is a game by RonKaps. This is a Pascal version with slight enhancements.
----------
Tetris Light 1.0
Hoylen Sue
h.sue@citr.uq.oz.au
Tricks CD:More Source:C/C++:
/info-mac/dev/src/
__________
Tetris Light is a light-weight implementation of Tetris for the Macintosh. It does not require color or other high-level features (it has been developed and tested on an SE).
----------
VideoToolbox 95.04.18
Denis Pelli
denis_pelli@isr.syr.edu
Tricks CD:More Source:Libraries:
/info-mac/dev/src/
__________
VideoToolbox is a collection of two hundred C subroutines and several demo and utility programs that were written to do visual psychophysics with Macintosh computers.
----------
Xconq 7.0d37
Stan Shebs
shebs@cygnus.com
Tricks CD:More Source:C/C++:
ftp://ftp.uu.net/pub/games/xconq/xc7.0/
__________
Xconq is not just a game, it's a game design system. It provides game designers with a variety of tools to help design new kinds of strategy games. Xconq has its own language, called GDL, a declarative Lisp-like language with considerable power.