equal
deleted
inserted
replaced
1 #summary Short description of the file format of hand-drawn maps |
1 #summary Short description of the file format of hand-drawn maps |
|
2 |
|
3 == Introduction == |
|
4 Hand-drawn maps are maps which are created by the player using the in-game map editor. |
|
5 |
|
6 == File format == |
|
7 Hand-drawn maps are saved with a file name suffix of “.hwmap”. The saving location is freely chosen by the user; Hedgewars does not use any predefined location to save hand-drawn maps. |
2 |
8 |
3 Drawn map is described by a list of points, which define polylines to draw and format of each polyline. |
9 Drawn map is described by a list of points, which define polylines to draw and format of each polyline. |
4 |
10 |
5 Point is defined as |
11 Point is defined as |
6 || Big-endian int16 || Big-endian int16 || Byte || |
12 || Big-endian int16 || Big-endian int16 || Byte || |
13 where *width* defines `(width * 10) + 6` pixels width line to draw |
19 where *width* defines `(width * 10) + 6` pixels width line to draw |
14 |
20 |
15 Second and further points of polyline have 8th bit of *flags* unset, the content of others doesn't matter. |
21 Second and further points of polyline have 8th bit of *flags* unset, the content of others doesn't matter. |
16 |
22 |
17 Single-point polyline defines a circle (well, that's kinda obvious). |
23 Single-point polyline defines a circle (well, that's kinda obvious). |
|
24 |
|
25 == Sharing hand-drawn maps == |
|
26 Hand-drawn maps will be automatically transferred when playing online. |
|
27 |
|
28 But if you wish you can still share you creations in the [http://www.hedgewars.org/node/2849 Hand-Drawn Maps Submission Thread]. |