IntroProgXNAGameStudio_eBook.pdf
(
9996 KB
)
Pobierz
PUBLISHED BY
Microsoft Press
A Division of Microsoft Corporation
One Microsoft Way
Redmond, Washington 98052-6399
Copyright © 2010 by Microsoft Corporation
All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means
without the written permission of the publisher.
Library of Congress Control Number: 2009932322
A CIP catalogue record for this book is available from the British Library.
Microsoft Press books are available through booksellers and distributors worldwide. For further information about
international editions, contact your local Microsoft Corporation ofice or contact Microsoft Press International directly at
fax (425) 936-7329. Visit our Web site at www.microsoft.com/mspress. Send comments to msinput@microsoft.com.
Microsoft, Microsoft Press, DirectX, Halo, Halo Wars, MS, MSDN, Visual C#, Visual Studio, Windows, Windows Live,
Windows Media, Windows Vista, Xbox, Xbox 360, Xbox LIVE, XNA and Zune are either registered trademarks or
trademarks of Microsoft Corporation in the United States and/or other countries. Other product and company names
mentioned herein may be the trademarks of their respective owners.
The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted
herein are ictitious. No association with any real company, organization, product, domain name, e-mail address, logo,
person, place, or event is intended or should be inferred.
This book expresses the author’s views and opinions. The information contained in this book is provided without any
express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will
be held liable for any damages caused or alleged to be caused either directly or indirectly by this book.
Acquisitions Editor:
Ben Ryan
Developmental Editor:
Devon Musgrave
Project Editor:
Valerie Woolley
Editorial Production:
S4Carlisle Publishing Services
Technical Reviewer:
Kurt Meyer; Technical Review services provided by Content Master, a member of CM Group, Ltd.
Cover:
Tom Draper Design
Body Part No. X16-03277
To Mary, David, and Jenny.
Table of Contents
Acknowledgements .................................................xv
Introduction ......................................................xvii
Part I
Getting Started
1
Computers, C#, XNA, and You ............................. 3
Introduction .........................................................3
Learning to Program .............................................3
Becoming a Great Programmer....................................4
How the Book Works..................................................4
C# and XNA..........................................................5
Getting Started .......................................................6
Installing the Development Environment and the XNA Framework.....6
Setting Up a PC to Run XNA Games................................7
Setting Up an Xbox 360 to Run XNA Games ........................7
Writing Your First Program............................................10
Creating Your First Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Running Your First Program ......................................12
Stopping a Program ............................................14
Storing Games on the Xbox 360 or Zune...........................15
Running the Same XNA Game on Different Devices .................15
Conclusion ..........................................................18
Chapter Review Questions ............................................19
2
Programs, Data, and Pretty Colors......................... 21
Introduction ........................................................21
Making a Game Program .............................................22
Statements in the
Draw
Method ..................................23
Working with Colors .................................................24
Storing Color Values ............................................24
Setting a Color Value............................................25
Controlling Color ....................................................27
Games and Classes..............................................27
Classes as Ofices ...............................................29
Game World Data ..............................................30
Storing Data in Computer Memory ...............................31
Drawing by Using Our Color Intensity Variables ....................32
v
Plik z chomika:
dominik716
Inne pliki z tego folderu:
Learn ASP.NET Core 3, 2nd Edition.epub
(16588 KB)
Learn ASP.NET Core 3, 2nd Edition.mobi
(43018 KB)
Learn ASP.NET Core 3, 2nd Edition.pdf
(19546 KB)
ASP.NET Core 3 and React by Carl Rippon.epub
(12064 KB)
Architecting-Modern-Web-Applications-with-ASP.NET-Core-and-Azure.pdf
(3428 KB)
Inne foldery tego chomika:
Bootstrap HTML5 Responsive Templates
c++
hacking
inne
Learning Python Design Patterns - 2nd Edition (2016) (Pdf, Epub & Mobi) Gooner
Zgłoś jeśli
naruszono regulamin