← Mac Game Programming 2002

Mac Game Programming 2002

From the originals

13 scans

Machine-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.

Image 1

MAC GAME PROGRAMMING

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

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
PDF page 1

MAC GAME PROGRAMMING

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

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
PDF page 2

Mac Game Programming PREMIER PRESS GAME DEVELOPMENT

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
PDF page 3

Mac Game Programming Mark Szymczyk PREMIER PRESS GAME DEVELOPMENT Premier Press

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
PDF page 4

© 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
PDF page 5

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.

PDF page 6

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
PDF page 7

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
PDF page 8

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
PDF page 9

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
PDF page 10

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
PDF page 11

.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