TEAMFLYGameProgrammingAll in One This page intentionally left blankGameProgrammingAll in One Bruno Miguel Teixeira de Sousa© 2002 by Premier Press. All rights reserved. No part of this book may be reproduced or transmittedin any form or by any means, electronic or mechanical, including photocopying, recording, or by anyinformation storage or retrieval system without written permission from Premier Press, except for theinclusion of brief quotations in a review.Premier Press, Inc. is a registered trademark of Premier Press, Inc.Publisher: Stacy L. HiquetMarketing Manager: Heather BuzzinghamManaging Editor: Sandy DoellAcquisitions Editor: Mitzi FosterSeries Editor: André LaMotheProject Editor: Heather TalbotTechnical Reviewer: André LaMotheCopy Editor: Jenny DavidsonInterior Layout: Marian HartsoughCover Design: Mike TanamachiCD-ROM Producer: Keith DavenportIndexer: Kelly TalbotProofreaders: Anne Owen, Fran Blauw, Linda SeifertMicrosoft, DirectX, DirectSound, and DirectInput are registered trademarks of MicrosoftCorporation.Jasc and Paint Shop Pro are trademarks or registered trademarks of Jasc Software, Inc.All other trademarks are the property of their respective owners.Important: Premier Press cannot provide software support. Please contact the appropriate softwaremanufacturer’s technical support line or Web site for assistance.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.Information contained in this book has been obtained by Premier Press from sources believed to bereliable. However, because of the possibility of human or mechanical error by our sources, PremierPress, or others, the Publisher does not guarantee the accuracy, adequacy, or completeness of anyinformation and is not responsible for any errors or omissions or the results obtained from use ofsuch 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-23-3Library of Congress Catalog Card Number: 2001096486Printed in the United States of America02 03 04 05 06 RI 10 9 8 7 6 5 4 3 2 1De todas as coisas que quero, és a única coisa que eu preciso.Para ti, Ana.AcknowledgmentsNow is the time I should go up to the stage, get the Oscar, and recite a book-length script of all the people that helped make this book. However, thethank you would probably be as big as this book, so to prevent from forgetting any-one, I would like to thank everyone that directly or indirectly made this book possi-ble.On the technical side, I would like to thank the people at Premier Press for givingme the opportunity to write this book. I would also like to thank my editors, EmiSmith, Mitzi Foster, Heather Talbot, and Jenny Davidson for all their patience a...