Game Development Reference
In-Depth Information
Figure 4.4
Platform Directory V2.
You can use the $(PlatformName) macro in your properties settings to keep platform-
specific intermediate and output files nice and neat.
As far as how you should change your directory structure, Figure 4.4 shows how to
set up a Win32/Xbox360/Wii multiplatform structure.
Take a look at Figure 4.4. The project root is C:\Projects\GameCode4\Dev. That
directory stores the familiar Game, Assets, Source, and Test directories I mentioned
earlier. There are two accommodations for platform-dependent files and directories.
First, there is a special platform-dependent directory for each platform. These
directories will hold executables and DLLs. The Game directory holds both the com-
mon files and platform-dependent files, named for what they contain.
GameCode4.zip stores cooked game assets common to all platforms, and there are
platform-specific files as well. Basically, you follow the same rules as before
—
make
it easy to find and filter your files based on what you want
—
in this case, by
platform.