# Mac Game Programming 2002 — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/1)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### Image 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/1#scan-36b9bda6b7a1b64dc279e39d068d51b061f78a4a18e9b712f7bc2b4552ca614f)

MAC GAME PROGRAMMING

Transcribed text:

THE PREMIER PRESS GAME DEVELOPMENT SERIES
CD INCLUDED
MAC®
GAME PROGRAMMING
Mark Szymczyk
Series Editor
André LaMothe
CEO Xtreme Games LLC

Image description: A book cover with a black background, large yellow-green title letters, an orange top banner, a CD icon, and a green-to-orange cityscape and futuristic robot-like graphic along the bottom with binary code patterns.

Reading notes: Small publisher logo text at lower left ('Premier Press') is partly cropped and reads only as 'remier' and 'ress'. Top banner text 'THE PREMIER PRESS' is partly overlapped by the orange banner design and may be less clear.

Languages: English

[Original Image 1](https://www.vintageapple.net/files/098a19874cc3ef2a40064dbd7fb7af82998deba917218d684520d86f9c288027/758d094d13905c3de71dafbf.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/1#scan-1fede18a55fa372d62ddf688903631653477eb1708b7cb67ab999fd798175557)

MAC GAME PROGRAMMING

Transcribed text:

THE PREMIER PRESS
GAME DEVELOPMENT SERIES
CD INCLUDED
MAC®
GAME
PROGRAMMING
Mark Szymczyk
Series Editor
André LaMothe
CEO Xtreme Games LLC
premier press

Image description: A book cover with a black background, large yellow-green outlined title letters, an orange top band, a CD-included badge, and a lower green-to-orange digital landscape with binary code and a futuristic vehicle-like graphic.

Reading notes: Small repeated red text in the lower graphic (GAME PROGRAMMING MAC) is decorative and was not transcribed as copy. Publisher logo text 'premier' at lower left is partially cropped and read as 'premier press'.

Printed product names: MAC Game Programming

Languages: English

[Original PDF page 1](https://www.vintageapple.net/files/26d9eb7720af42d3fbc19ddcfd351ab8c90bad2c65f0d8d3af3dbd56bc732a27/Mac_Game_Programming_2002.pdf#page=1)

### PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/1#scan-5038c2b6ca56c3208d2e88a3bc7dbe42bb9d3936744f6816b73072ab0c996c61)

Transcribed text:

Mac Game Programming

PREMIER PRESS
GAME DEVELOPMENT

Image description: A book title page with a large black stylized heading 'Mac Game Programming' over a white background with faint grey circuit-like line art and grey wireframe grid patterns at the top and bottom, and a black circular Premier Press Game Development logo near the bottom center.

Reading notes: Logo text 'PREMIER PRESS' and 'GAME DEVELOPMENT' is small; spelling confirmed as shown but fine print is not present.

Languages: English

[Original PDF page 2](https://www.vintageapple.net/files/26d9eb7720af42d3fbc19ddcfd351ab8c90bad2c65f0d8d3af3dbd56bc732a27/Mac_Game_Programming_2002.pdf#page=2)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/1#scan-2b8f5f9e7eb6dc776c676d747f8ce031c9a1fdff25b5aee3d62fac2c73d7cf6c)

Transcribed text:

Mac Game Programming

Mark Szymczyk

PREMIER PRESS
GAME DEVELOPMENT

Premier
Press

Image description: A book cover with a large blocky title 'Mac Game Programming' over a faded circuit-board and grid background, with the author name below and the Premier Press Game Development and Premier Press logos near the bottom.

Reading notes: Faint background text along the right edge and in the middle is too washed out to transcribe and was omitted.

Languages: English

[Original PDF page 3](https://www.vintageapple.net/files/26d9eb7720af42d3fbc19ddcfd351ab8c90bad2c65f0d8d3af3dbd56bc732a27/Mac_Game_Programming_2002.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/1#scan-b90b5121893986a8f203a372c0db22afb18f568f626bce3b3d4964cf19ae9e8f)

Transcribed text:

©   2002   by   Premier   Press,   Inc. All rights reserved. No part of this book may be reproduced or transmit-
ted in any form or by any means, electronic or mechanical, including photocopying, recording, or by
any information storage or retrieval system without written permission from   Premier   Press,   except for
the inclusion of brief quotations in a review.
I Premier   The   Premier   Press   logo, top edge printing, and related trade dress are trademarks of   Premier
Press,   Inc. and may not be used without written permission. All other trademarks are the
property of their respective owners.
P r e s s
Publisher:   Stacy   L.   Hiquet
Marketing Manager: Heather Buzzingham
Managing Editor:   Sandy   Doell
Acquisitions Editor: Emi   Smith
Series Editor:   Andre   LaMothe
Editorial Assistant: Margaret Bauer
Marketing Coordinator: Kelly Poffenbarger
Technical Reviewer: Darrell Walisser
Copy Editor: Alice Martina   Smith
Interior Layout: LJ Graphics
Cover Design: Mike Tanamachi
CD Producer: Darrell Walisser
Indexer: Johnna VanHoose Dinse
Proofreader:   Kim Benbow
Microsoft, Windows, Internet Explorer, Notepad, VBScript, ActiveX, and FrontPage are trademarks or
registered trademarks of Microsoft Corporation. Netscape is a registered trademark of Netscape
Communications Corporation. Macintosh is a registered trademark of Apple Computer, Inc.
Premier   Press   and the author have attempted throughout this book to distinguish proprietary trade-
marks from descriptive terms by following the capitalization style used by the manufacturer.
Impartant:   Premier   Press   cannot provide software support.   Please   contact the appropriate software
manufacturer's technical support line or Web site for assistance.
Information contained in this book has been obtained by   Premier   Press   from sources believed to be
reliable. However, because of the possibility of human or mechanical error by our sources,   Premier
Press,   or others, the   Publisher   does not guarantee the accuracy, adequacy, or completeness of any
information and is not responsible for any errors or omissions or the results obtained from use of
such information. Readers should be particularly aware of the fact that the Internet is an ever-chang-
ing entity.   Some   facts may have changed since this book went to press.
ISBN:   1-931841-18-7
Library of Congress Catalog Card Number:   2001096218
Printed   in the United States of America
02   03   04   05   RI   10   9 8 7 6 5 4 3 2 1

Reading notes: Printed date '2001096218' is a Library of Congress Catalog Card Number rather than a calendar date Headline not identifiable in supplied copy

Printed product names: Windows · Internet Explorer · Notepad · VBScript · ActiveX · FrontPage · Netscape · Macintosh

Printed dates: 2002 · 2001096218

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/26d9eb7720af42d3fbc19ddcfd351ab8c90bad2c65f0d8d3af3dbd56bc732a27/Mac_Game_Programming_2002.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/1#scan-d24df1afd87bb45cddd2c004ab138e4cadbd6e894a4b517be8e5dad481f56618)

Image description: The image is a entirely blank white page with no visible artwork, layout elements, or text.

Reading notes: No visible text or graphics appear anywhere on the page, so the transcript and all printed fields are empty.

[Original PDF page 5](https://www.vintageapple.net/files/26d9eb7720af42d3fbc19ddcfd351ab8c90bad2c65f0d8d3af3dbd56bc732a27/Mac_Game_Programming_2002.pdf#page=5)

### PDF page 6

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/1#scan-9210458cb57690c18e00f3bd40c05a686d9fca815010ae7eb580d74c210de4fe)

Transcribed text:

Foreword
§   o   you want to be a Mac game programmer? This book is a great place to start.
Whether you are interested in how games work, want to learn to write share-
ware games, or want to become the next great commercial game developer, this
book will show you some of the key technologies and techniques required to make
your dream game.
Through the years, I've worked on many Mac games, from   Duke Nukem 3D   to   Tomb
Raider   and   Unreal   Tournament.   When I began writing Mac games in 1985, I would
have loved to have access to a reference like this one. In those early years, Mac
game developers learned tricks from anywhere they could find them-late nights
pouring over Apple documentation, swapping ideas with other developers, and a
lot of trial and error.
As president of Westlake Interactive, I'm often asked by people how to break into
the Mac game business. My first answer is to get experience any way you can.
Anything from writing simple 2D games to working on flashy demos will show
potential employers that you have the drive and knowledge to make it in the game
business. Mac game programmers are incredibly difficult to find these days, so the
market for people with the interest and talent to work in the industry is very strong.
Writing Macintosh games can be some of the most exciting, challenging, and
rewarding work a programmer can tackle.   You   have in your hands the perfect start-
ing point to enter the world of game programming; with hard work and determina-
tion, you'll be well on your way to writing that next great Mac game!
Glenda Adams
President, Westlake Interactive
May   2002

Printed product names: Duke Nukem 3D · Tomb Raider · Unreal Tournament

Printed dates: 1985 · May 2002

Languages: English

[Original PDF page 6](https://www.vintageapple.net/files/26d9eb7720af42d3fbc19ddcfd351ab8c90bad2c65f0d8d3af3dbd56bc732a27/Mac_Game_Programming_2002.pdf#page=6)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/1#scan-9fa6872ab01b3f40affdae7be54203d658c58a017dd5e03d5aa6a85c32ce29d8)

Transcribed text:

Ac:knawledgmen~§
I   t   pains me to admit it, but I did not single-handedly create this book. Many people
helped make this book a reality, and I'd like to thank them here.
First, I'd like to thank my editors at   Premier   Press-and   I worked with many editors
on this book. I would like to thank my original acquisitions editor, Jody Kennen, for
discovering me and for putting the book deal together. I would also like to thank my
original project editor, Brian Thomasson, for his help as I wrote the first chapters of
this book. He helped me get up to speed quickly on writing the chapters.
While I was writing this book, both Jody and Brian left to take other positions. Emi
Smith   became my new acquisitions editor. I need to thank Emi for gathering all the
permissions necessary to include all the programs on the   CD-ROM   and for putting
up with delays in the project. Thanks to my copy editor, Alice Martina   Smith,   for
cleaning up some of my grammar and for bringing up questions that made the text
of this book easier for you to understand. I would also like to thank my Tech Editor,
Darrell Walisser, for reviewing all the source code in this book and making sure it all
runs well.
Next, I owe a huge Thank You to Carlos Camacho, the editor of the Mac game pro-
gramming site iDevGames, for two reasons. First, he let me write some articles for his
site, which is how   Premier   Press   found me. Without his Web site, I wouldn't be writ-
ing this book. Second, he donated artwork, music, and sound effects for the CD-
ROM   that accompanies this book. His donation will make it easier for you to make
your own games, improving the book in the process.
I had many programming questions as I wrote the code for the book. I would like to
thank everyone who answered my questions on various mailing lists and message
boards. I don't have a list of individuals who helped, but you know who you are.

Reading notes: Source text contains letter-spacing and hyphenation artifacts such as 'Ac:knawledgmen' and split words Heading is not explicitly identified in the supplied copy

Languages: English

[Original PDF page 7](https://www.vintageapple.net/files/26d9eb7720af42d3fbc19ddcfd351ab8c90bad2c65f0d8d3af3dbd56bc732a27/Mac_Game_Programming_2002.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/1#scan-64110acb8591bc42516e937b56ab7a9f7b0c5b473104aeaea682328a189907a4)

Transcribed text:

The CD-ROM that is with this book comes packed with development tools, games,
source code, and game assets. I would like to thank everyone who graciously let me
include their programs on the CD-ROM.   You   have helped make this book as good as
it can possibly be.
Finally, I want to thank my family for helping keep me sane while I wrote the book.
To my parents   Stan   and Mary, my brothers Dave and   Steve,   my sister Kathy, her hus-
band John, and my nephews   Zachary   and Christian, thank you.

Languages: English

[Original PDF page 8](https://www.vintageapple.net/files/26d9eb7720af42d3fbc19ddcfd351ab8c90bad2c65f0d8d3af3dbd56bc732a27/Mac_Game_Programming_2002.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/1#scan-245968d285e40e9acf246e54dfcf929bd5deb073604c4d0ef51f8f617646a8b3)

Transcribed text:

About:   t:he   Aut:hor
When he graduated with a computer science degree from John   Carroll   University,
Mark   Szymczyk set out on a career in software development. After bouncing
around among various corporate programming positions, he decided to go into
game development, starting his own shareware game company, Black Apple
Software. While working on his first game, he wrote some game development arti-
cles for the iDevGames Web site, which led to a request to write this book. Now that
the book is completed, he can finish up work on his first game.
Mark currently lives in the Cleveland,   Ohio   area. When he's away from his Mac, he
enjoys playing basketball, listening to underground music from the   80s   and   90s,
and hanging out with his nephews.

Reading notes: The phrase 'the 80s and 90s' is written as '80s' and '90s' with spacing artifacts; dates are not full years.

Printed dates: 80s · 90s

Languages: English

[Original PDF page 9](https://www.vintageapple.net/files/26d9eb7720af42d3fbc19ddcfd351ab8c90bad2c65f0d8d3af3dbd56bc732a27/Mac_Game_Programming_2002.pdf#page=9)

### PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/1#scan-aa761cc9a70f28ec9a06c859df47ce9f7371e386696c53d3f9d1c0cd325016f4)

Transcribed text:

x
C:ontent!i   at   a   lilanc:e
lNT-RCCUCTlCN   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   XXV111
CH-Fl.PTE-R   l
lNT-RCCUCTlCN   TC   THE   IYl-FIC   -FINO   TC
G-FIME   .P-RCG-Ri=IMMlNG   •••••••••••••••••••••••   l
CH-Fl.PTE-R   2
.PROJECT   '8U1LCE-R   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   27
CH-Fl.PTE-R   3
C++   FC-R   c   .P-RCG-Ri=IMME-RS   •••••••••••••••••••   5!3
CH-Fl.PTE-R   Lf
lNT-RCCUCTlCN   TC
Mi=IClNTCSH   G-R-Fl.PHlCS   ••••••••••••••••••••••   77
CH-Fl.PTE-R   5
Tl   LES   -FINO   5C-RCLL1NG   ••••••••••••••••••••••   113
CH-Fl.PTE-R   Ei
-RN1Mi=IT1CN   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   155
CH-Fl.PTE-R   7
1 N.PUT5.P-RCC+<ET   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   1!37
CH-Fl.PTE-R   8
Hl   a   Mt=1Nt=1Ge-R   •••••••••••••••••••••••••   233
CH-Fl.PTE-R   !3
RE¥101NG   THE   +<eYSC-Fl-RC   -FINO   Mouse
.PLUS   £VENT   +fi=INOLlNG   •   •   •   •   •   •   •   •   •   •••••••••••   2!37

Reading notes: Source appears to be a table of contents with OCR damage in several characters (e.g., 'lNT-RCCUCTlCN', 'C:ontent!i'). No primary heading is clearly identifiable; the supplied copy is a chapter listing rather than a headline. Reading order and some chapter titles are uncertain due to OCR noise.

Languages: English

[Original PDF page 10](https://www.vintageapple.net/files/26d9eb7720af42d3fbc19ddcfd351ab8c90bad2c65f0d8d3af3dbd56bc732a27/Mac_Game_Programming_2002.pdf#page=10)

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/1#scan-04a0b9985c06908843533ed374be083b99eb6994979573a2d07985503fbdc9ed)

Transcribed text:

.Eilance   xi
CHR.PT£R   10
SCUNC   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   3Lf5
C++R.PT£R   11
.PHYSlCS   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   3!31
CHR.PT£R   12
6£G1NN1NG   -RRT1¥1Cl-RL   1NT£LL1G£NCE   •   •   •   •   •   •   •   •   •   •   •   •   Lf-55
CH-R.PT£R   13
.P-RTH-FlNClNG   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   Lf-!31
CH-R.PT£R   l   Lf
0R-RW5.PRCCf<£T   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   5Lf5
CH-R.PT£R   15
rlLES   •   •   •   •   ••••••••••••••••••••••••••   585
CH-R.PT£R   lEi
.PUTTlNG   lT   -ALL   TOGETHER   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   Ei3!3
CH-R.PT£R   17
UNC£RST-RNC1NG   THE   G-Rme•s   SauRce   Cece   •••••••   Ei75
CHR.PTER   18
0.PT1M1Z-RT1CN   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   717
CH-R.PT£R   1!3
G-RM£   0£V£LC.PIY1£NT   Tl.PS   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   •   7Ei3
-R.P.P£NC1X   -A
lNST-RLLlNG   .PRCGR-RMS   -FROM   TH£   CO-ROM   ••••••••   7!37
-R.P.P£NC1X   6
G-RM£   0£V£LC.PM£NT   RESOURCES   ••••••••••••••   801
-R.P.P£NC1X   C
CO-ROM   CONTENTS   ••••••••••••••••••••••   813

Reading notes: Table of contents OCR contains many damaged characters (e.g., '3Lf5', 'Lf-55', '!3!3', 'Ei75') making page numbers uncertain. Chapter titles such as 'PHYSlCS', 'RRT1¥1Cl-RL', 'UNC£RST-RNC1NG' show OCR corruption of letters. Printed page numbers in the contents list are unreliable and cannot be confidently read.

Languages: English

[Original PDF page 11](https://www.vintageapple.net/files/26d9eb7720af42d3fbc19ddcfd351ab8c90bad2c65f0d8d3af3dbd56bc732a27/Mac_Game_Programming_2002.pdf#page=11)

[Next transcribed scans](https://www.vintageapple.net/transcripts/media/va-mac-game-programming-2002-999f76/2.md)
