eBook - ePub
C# and Game Programming
A Beginner's Guide
Salvatore A. Buono, Salvatore A. Buono
This is a test
Partager le livre
- 532 pages
- English
- ePUB (adapté aux mobiles)
- Disponible sur iOS et Android
eBook - ePub
C# and Game Programming
A Beginner's Guide
Salvatore A. Buono, Salvatore A. Buono
DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations
Ă propos de ce livre
The second edition of C# and Game Programming offers the same practical, hands-on approach as the first edition to learning the C# language through classic arcade game applications. Complete source code for games like Battle Bit, Asteroid Miner, and Battle Tennis, included on the CD-ROM, demonstrates programming strategies and complements the comprehensive treatment of C# in the text. From the basics of adding graphics and sound to games, to advanced concepts such as the.Net framework and object-oriented programming, this book provides the foundations for a beginner to become a full-fledged programmer. New in this edition: - Supports DirectX 9.0 - Revised programs and examples - Improved frame rate for game examples
Foire aux questions
Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier lâabonnement ». Câest aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via lâapplication. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă la bibliothĂšque et Ă toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode dâabonnement : avec lâabonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă 12 mois dâabonnement mensuel.
Quâest-ce que Perlego ?
Nous sommes un service dâabonnement Ă des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă toute une bibliothĂšque pour un prix infĂ©rieur Ă celui dâun seul livre par mois. Avec plus dâun million de livres sur plus de 1 000 sujets, nous avons ce quâil vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Ăcouter sur votre prochain livre pour voir si vous pouvez lâĂ©couter. Lâoutil Ăcouter lit le texte Ă haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, lâaccĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que C# and Game Programming est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă C# and Game Programming par Salvatore A. Buono, Salvatore A. Buono en format PDF et/ou ePUB ainsi quâĂ dâautres livres populaires dans Ciencia de la computaciĂłn et ProgramaciĂłn de juegos. Nous disposons de plus dâun million dâouvrages Ă dĂ©couvrir dans notre catalogue.
Informations
Programming Basics
I
Chapter One
C# from the Beginning | 1 |
âEverything should be made as simple as
possible, but not simpler.â
possible, but not simpler.â
âAlbert Einstein
This chapter covers the basic aspects of the C# language including its history, compilers, algorithms, variables, and the use of the Base Class Library. Each section is designed to facilitate a quick and easy introduction and to ensure a strong foundation in programming and problem solving. Special attention was placed on what a new programmer needs to know and/or might be confused about; the sections can, however, be covered quickly. There are a few sections set aside to cover history and theory, but the core of this chapter is about programming. Two sections promote good programming habits and there is a section on runtime, programming, and compiler errors (recommended reading even if you donât get into trouble). If youâve skimmed the lessons, you know that this first chapter doesnât include any games, but donât let that fool you. All of the concepts covered here are just as important for games as they are for business and/or math related topics.
An Overview of the C# Language
C# is a high- or mid-level programming language (and just in case you didnât know, a programming language is the collection of words, phrases, and syntax rules used to communicate with the computer). Although there are many high-level programming languages (BASIC, JAVA, FORTRAN, Pascal, Lisp, ADA, Modula-2 and Logo), few have reached the popularity of the original C and C++ languages. C and C++ have been used to create everything from operating systems and word processing packages to compilers for other high-level languages. C and C++ have been the programming languages of choice for more than 50 percent of all programming applications, and with their advances in object-oriented programming and Internet applications, both Managed C++ and C# are sure to fuel the popularity of C languages well into this new millennium.
A Little History on the Cs
C was developed in the 1970s by Dennis Ritchie while he worked at AT&T Bell Laboratories. Before C, there was a language called B developed by Ken Thompson. While there was an A language, B was actually developed from Basic Combined Programming Language (BCPL), which was developed from a combination of two other languages, namely CPL and Algol60. C++âs object-oriented portions are attributed to still another language known as Simula67. CPL begot BCPL; BCPL begot B; B begot C; C begot C++; and C++ begot C#. In 1979, Bjarne Stroustrup (also at AT&T Bell Laboratories) developed the first version of C++ to be an enhanced version of the C language (initially referred to as C with classes). C++ was significantly enhanced with the addition of the Standard Template Library (STL) developed by Alexander Stepanov and Meng Lee at Hewlett-Packard. The STL was based heavily on previous work done by both Stepanov and Musser, from Rensselaer Polytechnic Institute.
Both C and C++ spread quickly in power and use, but eventually all the added features and expansions lead to incompatibilities and frustrations. Two standards were created, first with the American National Standards Institute (ANSI) C standard of 1983, and then the American National Standards for Systems Information and International Standards Organization (ISO) C/C++ standards of 1998 (Note: C was also updated in this second standard). The 1998 ANSI/ISO standard is generally referred to as Native C++, while Microsoftâs .Net Extensions are known as Managed C++. C# was also standardized with its first release under what is known as the 2001/2002 ECMA certified standard.
C# was developed by a team of Microsoft programmers led by chief architect Anders Hejlsberg. It is intended to supplement the development of applications required for both stream users and intranet/internet programmers alike. C# is definitely one of the most sophisticated languages ever developed, and similar to the entire .Net architecture, it will alter the way programmers think about programming for many years to come. Hejlsberg was also responsible for the development of Microsoftâs Visual J++, Turbo Pascal, and Delphi, for which he finally received the Dr. Dobbâs Journal Award for Excellence in Programming early in 2001. For further information on the history of Turbo Pascal, Visual J++, and the Dr. Dobbâs Journal Award, you should consult your local library⊠now letâs get back to business.
What is the .Net Framework?
The .Net framework is a multitasking, class-based programming library and interface that allows for both the interoperable exchange and execution of data. As a library, the .Net base classes are as powerful as the traditional Windows API function set, but have the added advantage of being completely object-oriented. Object-oriented programming (as explained throughout this book) is a practical method used to develop programs that promotes both the reusability and reliability of code. The .Net runtime (also known as the Common Language Runtime or CLR) serves as a shell or intermediate environment that assists the operating system with program execution(s).
The .Net framework also allows for program interoperability, requiring a Common Type System (CTS) governed through the Intermediate Language commonly known as Microsoftâs Intermediate Language (MSIL) and/or the Common Intermediate Language (CIL). I...