We receive many requests on theme creating topic. So, I'll try to describe this process.
Land generator theme in Hedgewars consists of many files: [i]LandTex.png[/i], [i]Sky.png[/i], [i]horizont.png[/i], [i]Border.png[/i], [i]Flake.png[/i] and [i]theme.cfg[/i].
Let's have a look at [b]'nature'[/b] theme:[list][*][i]LandTex.png[/i] is an image of 640x480 size. Actually, you may choose any dimensions you like when creating your own theme. The LandTex picture is tiled over generated landscape, so it should have no visible joints when being tiled for better looking.[*][i]Sky.png[/i] is the picture of the sky, it should be 1024 px high, any width. The color of the sky above clouds is described in [i]theme.cfg[/i]. 'avematan' theme has 64x1024 [i]Sky.png[/i], which is actually a gradient from dark-blue bottom to blue top. [i]Sky.png[/i] is tiled horizontally.[*][i]horizont.png[/i] is an image, drawn behind the landscape in front of the sky. It could be of any size. [i]horizont.png[/i] is tiled horizontally, just under the water line.[*][i]Border.png[/i] is the image of the border of landscape. It could be of any width, 32 px height. Top half of the picture is the border of the top lanscape edges, and the bottom half is the border of bottom edges.[*][i]Flake.png[/i] is the image of those objects flying behind map.[/list]
Let's look at the screenshot:
[img]http://hedgewars.org/images/avematantheme/hw-avematan.png[/img]
'1' points to [i]horizont.png[/i]
'2' shows where the [i]Border.png[/i] is drawn
'3' is over [i]Sky.png[/i]
'4' is painted on [i]LandTex.png[/i]
'5' shows so-called 'map objects'.
What are 'map objects'? To understand well, we should look into theme.cfg and see, what's there.
[list][*]The first line of theme.cfg is the color value of landscape hole border color after explosion. It has format "[b]R G B[/b]", where R, G and B are red, green and blue color components, each has value from 0 to 255;[*]The next line describes sky color in the same format;[*]Third line is soundtrack name, you may leave this line empty;[*]Fourth line is the number of clouds to fly in the sky;[*]5th line is the number of map objects included in this theme[/list] There could be no map objects, but theme is quite sad without them. [b]'nature'[/b] theme has 4 map objects. Next lines describe map objects, two lines per object. So, let's look at these lines:
[code]plant2
0 85 25 25 2 0 0 170 70 50 70 120 40[/code]
The first line is the name of the map object picture. The second describes the object: '0 85 25 25' is the rectangle of picture that should be behind the landscape, hidden from view (it has "[b]left top width heigth[/b]" format). '2' is the number of rectangles that should be visible, '0 0 170 70' and '50 70 120 40' are visible rectangles described for this object. Let's see:
[img]http://hedgewars.org/images/avematantheme/hw-avematan.rects.png[/img]
Green rectangles are rectangles described for 'inf' map object. Left rectangle is guaranteed to be visible, and the right - to be invisible when the land is generated.
The next line contains '0' - the number of special objects - that are painted on top of landscape. [s]The example could be found in theme 'wood' (line '5' there means the maximum number of objects placed on the land). [/s]
Last two lines are: number of flakes and their properties in format '[b]number_of_frames frame_duration rotation_velocity falling_speed[/b]'
So, that's all! Enjoy creating new themes!