Hats.wiki
changeset 1130 216ffcca9ede
parent 1129 8d4ef9a49b08
child 1131 bfaa8cfa4138
equal deleted inserted replaced
1129:8d4ef9a49b08 1130:216ffcca9ede
    99 
    99 
   100 Hedgewars will always use the very first frame of a hat image to create the preview in the team editor. This also applies to team hats.
   100 Hedgewars will always use the very first frame of a hat image to create the preview in the team editor. This also applies to team hats.
   101 
   101 
   102 
   102 
   103 == Templates ==
   103 == Templates ==
   104 For your convenience, we have created some templates to ease the creation of hats. You can use them as background layer to help you align your hats.
   104 For your convenience, we have created some templates to ease the creation of hats to help you to align the hats pixel-perfectly. You can use them as background layer to help you align your hats.
   105 
   105 
   106 === Static normal hats ===
   106 * Static normal hat: [https://www.hedgewars.org/images/Static_Hat_Template.png Static_Hat_Template.png]
   107 Just use the template for animated normal hats and crop it to the first frame (top left 32×32 pixels).
   107 * Static team hat: [https://www.hedgewars.org/images/Static_Team_Hat_Template.png Static_Team_Hat_Template.png]
       
   108 * Animated normal hat: [https://www.hedgewars.org/images/Hat_Template.png Hat_Template.png]
       
   109 * Animated team hat: [https://www.hedgewars.org/images/Team_Hat_Template.png Team_Hat_Template.png]
   108 
   110 
   109 === Animated normal hats ===
   111 For GIMP users, we also have XCF files with layers for your convenience:
   110 A basic PNG template is [https://www.hedgewars.org/images/Hat_Template.png Hat_Template.png]. You can use this image as a background layer. This image shows a colored checkerboard pattern, each field represents an animation frame. The green and red fields are those where the idle hedgehog has an offset of +1px or −1 px (see above). The black fields are the unused frames. In the front, the idle hedgehog can be seen but shifted 5 pixels lower and the 5 lowest pixels cut off.
   112 * Animated normal hat: [https://www.hedgewars.org/images/Hat_Template.xcf Hat_Template.xcf]
   111 You can use this image to exactly align the hat properly.
   113 * Animated team hat: [https://www.hedgewars.org/images/Team_Hat_Template.xcf Team_Hat_Template.xcf]
   112 
   114 
   113 This image is also available as XCF for GIMP users: [https://www.hedgewars.org/images/Hat_Template.xcf Hat_Template.xcf]. It got an additional layer and you can easily toggle a couple of layers on and off.
   115 === Quick explanation ===
   114 
   116 You can use these images as a background layer. They show a colored checkerboard pattern, each field represents an animation frame. The green and red fields are those where the idle hedgehog has an offset of +1px or −1 px (see above). The black fields are the unused frames. In the front, the idle hedgehog can be seen but shifted 5 pixels lower and the 5 lowest pixels cut off.
   115 === Animated team hats ===
       
   116 You can use [https://www.hedgewars.org/images/Team_Hat_Template.png Team_Hat_Template.png]. This is similar to the previous PNG. The hedgehogs on the right half are in gray to remind you that you only should use grayscale colors on this side.
       
   117 
       
   118 The XCF source of this file is here: [https://www.hedgewars.org/images/Team_Hat_Template.xcf Team_Hat_Template.xcf].
       
   119 
   117 
   120 == Sharing hats ==
   118 == Sharing hats ==
   121 Custom hats (hats which are not part of the official Hedgewars installation) are only visible to other players if they have the hat installed under the same file name.
   119 Custom hats (hats which are not part of the official Hedgewars installation) are only visible to other players if they have the hat installed under the same file name.
   122 
   120 
   123 In case the other player does not have the custom hat installed, the player will see no hat instead.
   121 In case the other player does not have the custom hat installed, the player will see no hat instead.