Content Creations

OMEN ¦ Maps and Themes

How-To: Creating new theme [updated, still old illustrations]

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: LandTex.png, Sky.png, horizont.png, Border.png, Flake.png and theme.cfg.

Let's have a look at 'nature' theme:

  • LandTex.png 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.
  • Sky.png is the picture of the sky, it should be 1024 px high, any width. The color of the sky above clouds is described in theme.cfg. 'avematan' theme has 64x1024 Sky.png, which is actually a gradient from dark-blue bottom to blue top. Sky.png is tiled horizontally.
  • horizont.png is an image, drawn behind the landscape in front of the sky. It could be of any size. horizont.png is tiled horizontally, just under the water line.
  • Border.png 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.
  • Flake.png is the image of those objects flying behind map.

Let's look at the screenshot:

'1' points to horizont.png
'2' shows where the Border.png is drawn
'3' is over Sky.png
'4' is painted on LandTex.png
'5' shows so-called 'map objects'.

What are 'map objects'? To understand well, we should look into theme.cfg and see, what's there.

  • The first line of theme.cfg is the color value of landscape hole border color after explosion.

Syndicate content

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]