Directions

Similiar to the real world, there are four main directions in OTTD world (Fig 1).

Fig 1. - Directions on minimap

However, the TTD world is built of many tiles which can be counted in four semi-directions: north-west (NW), north-east (NE), south-west (SW) and south-east (SE). They are called horizontal (SW to NE and vice-versa) and vertical (NW to SE and vice-versa) tiles.

Tiles counted from south to north (and vice-versa) or from east to west (and vice-versa) are known as diagonal tiles

Fig 2. - Slopes are directed at eight directions

Tunnels, bridges, airports, canals and roads can be built only on horizontal and vertical tiles (Fig 3). However, railway can be additionaly built in diagonal directions (Fig 4).

Fig 3. - Most OTTD structures are built in horizontal or vertical directions
Fig 4. - Only railways can be built in diagonal directions

Internal representation

Internally in the source code each direction has an index. It may also be useful to know the translation between indexes and the relative positions which can be seen in the picture below:

/File/en/Development/Directions.png