.: The Finishing Touches
|
|
| |
This isn't really a tutorial as such, but more, a brief explanation of things that you will probably need to finish your game. There was however, one important code change. In the main Module, the declaration for XNAGameProjectFolder, shown below, was removed.
'The location of the project folder, which contains the .vbproj file
Public ReadOnly XNAGameProjectFolder As String = Mid(Mid(Application.StartupPath, 1, _
InStrRev(Application.StartupPath, "\") - 1), 1, InStrRev(Mid(Application.StartupPath, 1, _
InStrRev(Application.StartupPath, "\") - 1), "\"))
This was because I moved the Audio and Textures into a folder called content that was on the same level as the game executable, therefore any reference to XNAGameProjectFolder had to be changed to Application.StartupPath. The Sound class also had some paths that needed changed.
The final source code can be found here and the compiled game can be found here.
|
|
Now, there are a number of ways that you can package your game for distribution, I have used WinRAR to simply make a self-extracting executable that will install the game in the program files folder and create a shortcut on the desktop. If you want to use a proper windows installer tool, then you can get Advanced Installer here, as long as you only create a simple application, this program is free.
You will also need to either supply your users with, or at least tell them where to get both DirectX 9.0c and the XNA Framework Version 1.0, which are required to play the XNA games. I have included the XNA dlls with my game, but it is always a good idea to have the player install the framework separately.
Right, I think that's it, our game is now complete. I'm gong to have a little break now, for about a week, when I come back I will start the 3D tutorial section, so, until then, Enjoy and I'll see you on the tutorials page.
XNA SpaceBallz
Web site contents © Copyright Alan Phipps 2006, All rights reserved.
Website templates |