Black Art of Macintosh Game Programming 1996
From the originals
13 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
PDF page 12
+++++ Black Art of Macintosh Game Programming xi Playing the Music ............................................ 199 Sound Headers .............................................. 199 Skipping the Sound Header .................................... 203 Fill 'er Up .................................................. 204 Starting the Process .............................................. 207 The Continuous Sound Player ..................................... 210 StartContinuousSound ........................................ 212 New FillSoundBuffers ........................................ 216 Changing the Theme and Stopping the Music ...................... 218 Multiple Asynchronous Sounds .................................... 220 New InitializeAsyncSoundPlayer ................................ 221 New PlayAsyncSound ........................................ 222 Asynchronous Sound Utility Routines ............................ 224 The Complete Package ........................................ 225 Testing the Sounds .............................................. 225 Chapter 8: Invaders! ....... ........................................ 227 Enhancing the Sprites ............................................ 229 The NewSpriteO Function ..................................... 231 Drawing the Explosion ....................................... 234 The Player vs. the Invaders ........................................ 234 Invader Sprites .............................................. 236 Moving the Invaders ......................................... 238 Ship Sprites ................................................ 245 Moving the Ship ............................................. 246 Fire Away! ..................................................... 250 Invader Missiles ............................................. 251 Moving the Missiles .......................................... 252 Coll~ionDerection .......................................... 256 The Invaders! main() Function .................................... 258 A Few Remaining Routines ........................................ 264 Playing the Game ............................................... 266 Chapter 9: Wireframe Graphics ...................................... 269 Polygon-Based Objects ........................................... 272 Polygon-Fill Graphics ........................................ 272 Gouraud Shading ............................................ 273 Texture Mapping ............................................ 273 Ray Tracing and Beyond ....................................... 274 Wireframe Graphics ............................................. 27 4 Drawing Wires .............................................. 275 Bresenham's Algorithm ........................................... 276 The Slope of a Line .......................................... 277 Drawing Directly to a GWorld .................................. 280
Reading notes: Table of contents with OCR-damaged entries such as 'Coll~ionDerection' and 'NewSpriteO' Entry 'Multiple Asynchronous Sounds' and similar headings may have uncertain line breaks
- Languages
- English