Summary
We now have a working—if not pretty—level editor. In this chapter, we:
Added multiple layers and other types of data to the
TileMap
class that we built for Robot RampageCreated a multi-project Visual Studio solution that shares code between projects
Added a Windows Forms form to our XNA Game Studio project and modified the program's startup process to render the form to a
PictureBox
control on the formImplemented methods to allow communication between the Windows Form and the XNA game, including synchronized scroll bars, and updating member variables in the
Game1
class in response to Windows Forms controls eventsImplemented methods to load and save map files through the
BinaryFormatter
class
In the next chapter, we will flesh out the Gemstone Hunter project and cover the basics of building a platform-style game using the maps that we created with the level editor from this chapter.