DrawnMapFormat.wiki
changeset 1222 111d15f81dbd
parent 798 30c5f1ebd552
child 1621 41a7f751b77b
equal deleted inserted replaced
1221:16391ff5e091 1222:111d15f81dbd
    13 || Big-endian int16 || Big-endian int16 || Byte ||
    13 || Big-endian int16 || Big-endian int16 || Byte ||
    14 || *X* coordinate || *Y* coordinate || *flags* ||
    14 || *X* coordinate || *Y* coordinate || *flags* ||
    15 
    15 
    16 where *flags* are:
    16 where *flags* are:
    17 || 8th bit || 7th bit || 6th-1st bits ||
    17 || 8th bit || 7th bit || 6th-1st bits ||
    18 || if set, this is a first point of polyline || if set, polyline is erasing || *width*(thickness) of line ||
    18 || if set, this is a first point of polyline || if set, polyline is erasing || *width* (thickness) of line ||
    19 
    19 
    20 where *width* defines `(width * 10) + 6` pixels width line to draw
    20 … where *width* defines `(width * 10) + 6` pixels width line to draw.
    21 
    21 
    22 Second and further points of polyline have 8th bit of *flags* unset, the content of others doesn't matter.
    22 Second and further points of polyline have 8th bit of *flags* unset, the content of others are ignored for those.
    23 
    23 
    24 Single-point polyline defines a circle (well, that's kinda obvious).
    24 A single-point polyline defines a circle.
    25 
    25 
    26 == Sharing hand-drawn maps ==
    26 == Sharing hand-drawn maps ==
    27 Hand-drawn maps will be automatically transferred when playing online.
    27 Hand-drawn maps will be automatically transferred when playing online.
    28 
    28 
    29 But if you wish you can still share you creations in the [https://www.hedgewars.org/node/2849 Hand-Drawn Maps Submission Thread].
    29 But if you wish you can still share you creations in the [https://www.hedgewars.org/node/2849 Hand-Drawn Maps Submission Thread].