Flylib.com

Books Software

 
 
 

Hour 20 , Teaching Games to Think


Hour 20, "Teaching Games to Think"

A1:
A2:
A3:

Hour 21, "Example Game: Space Out"

A1:
A2:
A3:

Hour 22, "Adding Pizzazz to Your Game with a Splash Screen"

A1:
A2:
A3:

Hour 23, "Showing Off Your Game with Demo Mode"

A1:
A2:
A3:

Hour 24, "Keeping Track of High Scores"

A1:
A2:
A3:

Appendix B. Selecting a Game Development Tool

The programming techniques described in this book rely on the C++ programming language in a Windows environment. This means that you use C++ code to develop programs that run on the Windows operating system. In order to compile C++ code into an executable Windows program, you need a C++ compiler that targets the Windows operating system. Fortunately, there are several C++ development tools available that support Windows.

You might think that you can use any C++ compiler to build games for Windows, but in order to support Windows a compiler must include the Windows API (Application Programming Interface) . From a programming perspective, the Windows API is a set of unique functions and data structures that allow you to create programs for Windows. From the perspective of a development tool, the Windows API is a set of header and library files that are essential in allowing you to build Windows programs. So, you must use a compiler that is capable of creating Windows programs using the Windows API.

The next few sections introduce you to a few of the popular C++ development tools available for creating Windows games. All of the code examples throughout the book are targeted for Microsoft Visual C++, which simply means that I've included project files to make it easier to build the programs in Visual C++. I chose Visual C++ simply because it is the most widely used C++ development tool for Windows. However, if you choose to use one of the other tools, you shouldn't have any problem creating new projects within the tool and building the examples.

graphics/book.gif

Project files are used to inform a compiler of the source code files that need to be compiled, along with library files that should be linked into the executable program, as well as other compiler and linker settings.



Microsoft Visual C++

It's safe to say that Microsoft Visual C++ is the industry standard for C++ program development in Windows. It is technically part of the Visual Studio development suite, but you can also purchase it as a standalone tool. Although it's not the cheapest option for game development, you aren't likely to find a better solution when it comes to a professional grade C++ development environment for Windows. The program examples and games created throughout the book were developed using Visual C++, and I've provided Visual C++ project files with the source code that is also available for download online (http://www.michaelmorrison.com/cbooks.html). For the record, this isn't an endorsement for Microsoft; it's just that Visual C++ has long been the industry standard for serious Windows application development.

graphics/book.gif

The latest version of Visual C++ is actually called Visual C++ .NET, which has to do with Microsoft's .NET framework for creating Web applications. None of the games developed in this book have anything to do with .NET or features of Visual C++ related to .NET.


To find out more about Microsoft Visual C++, visit its Web site at http://msdn.microsoft.com/visualc/.