Codetopia

A place to talk about things related to XNA, .NET, and enterprise application development.
Welcome to Codetopia Sign in | Join | Help
Home My Book Blogs Forums Photos Files Roller

CH24 - BrickBreaker Level Editor

File Details
Downloads: 498 File Size: 48.2kB
Posted By: groundh0g Views: 637
Date Added: Fri, Jan 18 2008

This ZIP archive contains source code from the book, XNA Game Studio Express: Developing Games for Windows and the Xbox 360, by Joseph Hall. The following paragraphs describe the changes that have been made to the code since it was first released with the book.

Changes to the Source Code

No changes were made to this project to support XNA 2.0. This project generates a standard Windows application, and its source code does not reference the XNA Framework.

A New Home

On the CD-ROM that accompanies the book, there is no separate solution for the BrickBreaker Level Editor. The editor is in the same solution (and the same subdirectory) as the BrickBreaker game. I've split this out into it's own stand-alone projects, and moved it from the subdirectory which contains the "Genre Studies" examples to the subdirectory which contains the "Components, Libraries, and Tools" examples.

Reminder: Application.UserAppDataPath

Don't forget that the user's application data path is defined by the AssemblyCompany, AssemblyProduct, and AssemblyVersion attributes of your assembly. If any of those values contain characters that aren't legal to use in file names, you'll get a runtime exception whenever the Application.UserAppDataPath member is accessed. I've already ensured that those properties contain only filename-friendly characters. I'm just noting it here for those who wish to follow the chapter text and create the project files on their own.

Intuitive File Names

I used longer, more descriptive filenames for the solution files, project files, and directory names. The new names make it much easier to locate the source code for a specific chapter. This may cause issues if you do your development in a deeply-nested subdirectory, like the default Visual Studio project folder of "C:\Documents and Settings\{username}\My Documents\Visual Studio 2005\Projects\".

I suggest creating a folder off the root of the drive from which you wish to develop your XNA games. I use "C:\projects\" on my laptop, and "E:\projects\" on my desktop.

ZIP Anatomy

All of the ZIP files which host the book's source code use a parallel directory structure. I expect the user to download the ZIP files into a common directory, then extract the files from each ZIP directly into that directory, preserving the ZIP file's internal directory structure. For example, if you download PT1_CH04.zip, PT1_CH07.zip, and PT2_18.zip into the "C:\projects\" directory on your local PC, and then extract the files to that same folder, you should have the following directory structure on your local drive.

   C:\projects\Part 1 - Introduction\CH04 - Graphics 2D\
   C:\projects\Part 1 - Introduction\CH07 - Input GamePad\
   C:\projects\Part 2 - Genre Studies\CH18 - Board Games\
Comments
No comments exist for this file.

Add Comment

Add
Name
Web Site
Comment
Powered by Community Server, by Telligent Systems