No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Linedef]]s are connected to '''vertices''', which are nothing more than coordinates in the map. |
[[Linedef]]s are connected to '''vertices''', which are nothing more than coordinates in the map. |
||
+ | The vertices for a map are stored in the <tt>VERTEXES</tt> [[lump]], which consists of a raw sequence of x, y coordinates as pairs of 16-bit signed integers. The bytes are in little-endian order (least significant byte first). |
||
− | ===Vertex Structure=== |
||
− | <tt> |
||
− | bytes<br> |
||
− | 2: x coordinate<br> |
||
− | 2: y coordinate<br> |
||
− | </tt> |
||
− | + | Due to the 16-bit signed format, each coordinate can range from -32768 to +32767. |
|
[[Category:Doom engine]] |
[[Category:Doom engine]] |
Revision as of 23:58, 11 January 2005
Linedefs are connected to vertices, which are nothing more than coordinates in the map.
The vertices for a map are stored in the VERTEXES lump, which consists of a raw sequence of x, y coordinates as pairs of 16-bit signed integers. The bytes are in little-endian order (least significant byte first).
Due to the 16-bit signed format, each coordinate can range from -32768 to +32767.