The map editor project
With the tile engine in place, we are now ready to begin building the map editor we will use to create levels for the Gemstone Hunter game. The map editor will combine both an XNA Game and a Windows Forms form to take advantage of the Windows Forms controls (menus, buttons, checkboxes, and so on) to save us the time of recreating all of these controls within XNA.
Creating the map editor project
Since we know that we want to create a Windows Forms application for our level editor, it is tempting to use the Windows Forms application template that is included with Visual C#. However, it is much easier to add a Windows Forms object to an XNA game project than to work the other way around and try to incorporate all of the components of an XNA project into the Windows Forms template.