N
Register
(expanded)
(categ)
Line 16: Line 16:
   
 
If a parameter is not a number, it is replaced with [[NaN]] when the map is loaded.
 
If a parameter is not a number, it is replaced with [[NaN]] when the map is loaded.
  +
  +
[[Category:Map design]]

Revision as of 19:34, 26 January 2006

Map data refers to the data generated by Ned when you create a map.

Structure

The map data is divided by a pipe (|) into two parts: The first parts contains information about the tile data, the second part described the objects, enemies, etc.

Tiles

Each one of the 711 tiles is represented by one ASCII character. For example, "0" represents a D tile, and "1" represents an E tile.

Objects

The objects are separated by exclamation marks. The data for one object consist of numbers, which are separated by commas. The first number represents the object type, e.g. 5 for the ninja, 0 for a piece of gold, or 6 for a drone (all types). The following two numbers are the X and Y coordinate of the object.

In addition to these 3 parameters, more parameters can be added to describe the object if necessary. For example, some parameters added to the data of drone describe its type (laser, zap, chaingun), its starting direction, its pathfinding algorithm, and so on.

If a parameter is not a number, it is replaced with NaN when the map is loaded.