Game Development Reference
In-Depth Information
{
_playerHasWonGame ΒΌ true;
ChangeGameState("PlayerWinState");
}
}
The world update function is now shorter and more readable.
It's worth investigating and becoming familiar with the refactor functions as they
can be excellent time savers.
Shortcuts
Visual Studio and Visual Studio Express have many useful shortcut keys; Table
4.1 shows some of the most useful. A few of the shortcuts are general to most text
editors.
Subversion, an Easy Source Control Solution
Subversion is the source control system we'll use to keep our source code safe.
Subversion is often abbreviated to SVN. The easiest way to install SVN on
Windows is to use TortoiseSVN. TortoiseSVN integrates itself into the Windows
context menu, making it very simple to manage source control operations.
Where to Get It
The official website for TortoiseSVN is http://tortoisesvn.net/, and the latest
build should be available to download from http://tortoisesvn.net/downloads/.
It's also available on the CD. There are two versions x86 and x64; these are for
32-bit machines and 64-bit machines, respectively.
Installation
Installation is simple, just double-click the icon and accept all the default
options. This will install the program to your program files directory. After
installation has finished, you will be prompted to restart.
Once your system has restarted, right-click on your desktop. You should have
three extra items in your context menu, as can be seen in Figure 4.9. These menu
items will be used to manage your source code.
Creating the Repository
A source control repository is the place where all the code and data will be stored.
We'll make our repository on the hard disk. It's a good idea to choose a location
 
 
Search WWH ::




Custom Search