DrawnMapFormat.wiki
author kyberneticist@gmail.com
Sat, 27 Oct 2012 14:42:08 +0000
changeset 263 afcb38bfd761
parent 226 6ca639109e95
child 432 e441f3f51dac
permissions -rw-r--r--
Revert use of build dir. Nice idea, but breaks pas2c and confused people. Esp people who had done this before. For most people, a purge is adequate if they need to clean up. Heck, that's what unc0rr and I apparently do, or we would have noticed the pas2c thing earlier

Drawn map is described by a list of points, which define polylines to draw and format of each polyline.

Point is defined as
|| Big-endian int16 || Big-endian int16 || Byte ||
|| *X* coordinate || *Y* coordinate || *flags* ||

where *flags* are:
|| 8th bit || 7th bit || 6th-1st bits ||
|| if set, this is a first point of polyline || if set, polyline is erasing || *width*(thickness) of line ||

where *width* defines `(width * 10) + 6` pixels width line to draw

Second and further points of polyline have 8th bit of *flags* unset, the content of others doesn't matter.

Single-point polyline defines a circle (well, that's kinda obvious).