Explanation of flags
Flags are little rectangular images shown in the team bar as a team’s symbol.
To create a flag, draw a PNG image (RGBA mode, but all pixels should be opaque) of size 22×15 pixels.
To install a flag, put it into
of the Hedgewars data directory.
The file name must have “.png” at the end, the file suffix will not be shown in Hedgewars. Depending on the name, the flag will be displayed in different ways in Hedgewars:
- Default flag: The flag “
” (shows a hedgehog), flag of new teams.
- Computer flag: The flag “
”. It is shown for computer-controlled teams in place of the selected flag in the team editor, together with an overlay of 1 to 5 bars designating the strength of the team. This flag is not shown in the team editor.
- The flag “
”. It is currently unused by Hedgewars and is not shown in the team editor.
- Community flags: The flags whose file name starts with “
” are listed as “community flags” in Hedgewars (the prefix is removed)
- National flags: All other flags
Please note that the flags “
”, a couple of community flags and national flags come pre-installed with Hedgewars. If you use a flag of an identical name in your Hedgewars user data directory, Hedgewars will show that one instead of the system-wide installed flag. That way, you can customize the default flag, for example.
Flags are not
exactly displayed as the original image. In the game, the 4 pixels in each corner of the flag will always be “hidden” for the “round corner” effect. This is a very minor effect but might be important to remember.
Only in the team editing menu the flags are displayed with all pixels.
Custom flags (flags which are not part of the official Hedgewars installation) are only visible to other players if they have the flag installed under the same file name.
In case the other player does not have the custom flag installed, the player will see the default
You are encouraged to share your flags in the thread “Flags! additions, submissions, information.”, where submissions are being considered for official inclusion into Hedgewars.