D2D Map Editor Beta 2.5.0 Users Manual
Table of contents.................................................................................................................... 2
Introduction............................................................................................................................ 3
About the D2D Map Editor................................................................................................... 3
Already a D2D user?........................................................................................................... 3
The License............................................................................................................................ 4
GNU General Public License
(GPL)...................................................................................... 4
Getting started........................................................................................................................ 5
System requirements.......................................................................................................... 5
Is the .NET 2.0 Framework
installed?.................................................................................... 5
Pre-release versions of .NET
Framework v2.0........................................................................ 6
Download the latest version.................................................................................................. 6
Installing the application.......................................................................................................... 7
Navigating the interface............................................................................................................ 9
Common tasks..................................................................................................................... 11
Creating a set of tiles......................................................................................................... 11
Creating a map................................................................................................................. 12
Outputting the map code.................................................................................................... 13
Working with layers........................................................................................................... 13
The Layer Palette.............................................................................................................. 13
Layer Properties................................................................................................................ 14
Credits............................................................................................................................. 15
About the developers......................................................................................................... 15
The D2D Map Editor enables the rapid creation of multilayered tile based map grids. It’s easy to learn and can be used by programmers and non-programmers alike. The maps generated can be deployed in games and applications developed in C++, C#, Actionscript and XML.
D2D Map Editor has been developed in C# and is currently released as a Beta 2.5.0 version.
For the latest news and project updates visit:
http://www.dannylum.com/D2DProject/index.html
To download the latest release visit:
http://sourceforge.net/projects/d2dmapeditor/
If you’ve used D2D to develop a project, let us know and we’ll be happy to feature your work on the D2D site. Submit your project details to the team leader:
dannielum@users.sourceforge.net
This file is part of D2D Map Editor.
Copyright (C) 2008 Danny Lum:
dannielum@users.sourceforge.net
D2D Map Editor is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
D2D Map Editor is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with D2D Map Editor. If not, see <http://www.gnu.org/licenses/>.
Supported operating systems:
Required software:
Disk space needed:
To check which version of the Microsoft .
javascript:alert(navigator.userAgent)

Fig 1. Pop up window -
.
.
.
Note: Some machines might have more than one version of .
IMPORTANT:
Pre-release versions of the .
Before installing, check for the latest version of the application at SourceForge.net
http://sourceforge.net/projects/d2dmapeditor/
The wizard will guide you through the installation of the D2D Map Editor.

Fig 2. Initial
installation screen.

Fig 3. Installation
screen – ‘Browse’ for a custom folder or ‘Next’ for the default selection.

Fig 4. Final
installation screen – Installation successful!

Fig 5. D2D Map Editor
– JingZhou map loaded
Access the main functions here.
The main work area, where tiles are placed, selected and rearranged.
This view shows the full extent of the map.
These tools are used to select, draw and delete the tiles in the design view.
Displays all the tiles currently loaded.
The output code type is selected here.
Properties set here effect the matching tile in the Library, and every instance of the tile in the Design View.
The size of the map and tiles are set here.
Create, delete, select and order layers.
These tabs switch between Design and Code views.
A tile is the fundamental unit of all maps. Tiles are created from single graphic image, referred to as a Sprite Sheet.
Sprite Sheets are imported into D2D which then splits them into individual map tiles and generates an accompanying piece of code - containing information about the properties of each tile.
To create a new set of tiles from a Sprite Sheet navigate to
the main menu and select Tiles > Import Tiles.

Fig 6. Import tiles
screen
Browse
to an appropriate folder or create a new one, select ‘Yes’ and the new Tile Set
will be created.
D2D now gives the option to load the new Tile Set into
the library of the current map.
Tip: If the Tile Set appears blurred, check that the Tile Width and Height in the Map Properties menu matches the size of the Tile Set in the library.
1. Select a Tile from the Tile Library.
2.
Use the Paint tool
to paste the Tile into
a Map Cell.
1. Select a Tile from the Tile Library.
2.
Use the Selection tool
to draw a boundary around a group of tiles.
3.
With the Fill tool
paste the selected
Tile into all of the selected Map Cells.
1. Use the Selection Tool to highlight the Map Cells.
2.
Press DELETE to remove all the tiles in the
selected area or use the Erase tool
to clear the contents
of a single cell.
Maps can be defined in four programming languages: C++, C#, Actionscript and XML. XML Lite is an optimized version of the XML markup whereas the XML setting is a legacy from earlier releases of D2D and produces more verbose code. The language can be selected in a number of ways:


Multiple layers can be used to form complex maps, allowing a level designer to group common objects such as obstacles, NPCs and power-ups.
D2D allows the properties for individual layers to be set independently. Working with layers involves using the Layer Palette and Layer Properties Menu.

Using the Layer Palette you can add, delete and order layers.
The current active layer is indicated by the blue highlight. Clicking on the layer name will activate the layer.

This menu is used to set individual layer parameters.
Tip: When naming layers use only upper and lower case letters, numbers and underscores.
Danny Lum began working on the D2D Map Editor as part of a college project back in 2006. The project was a tile based game which required lots of map design. Without being able to see the map rendered graphically Danny had to ‘draw’ each tile in an array – slow work.
Enter the D2D Map Editor.
After completing a prototype version of the editor the decision was made to share it with the Open Source Community - in return for all the help received from other people over the years.
You can contact Danny at the address below with suggestions and feedback:
dannielum@users.sourceforge.net
This manual was written and edited by Matthew Byrne. Any comments or amends please contact me at:
matthewbyrne@users.sourceforge.net