ThemeFiles.wiki
changeset 453 fd4ae402ff13
parent 452 0985b61ce412
child 454 aa8bbe01c9bb
equal deleted inserted replaced
452:0985b61ce412 453:fd4ae402ff13
    52 A dust particle animation which appear when something hits the ground hard. This is a sprite sheet with a size of 22×176 pixels, each image has a size of 22×22 pixels. The topmost image shows the start of the animation, the lowest image the end of the animation.
    52 A dust particle animation which appear when something hits the ground hard. This is a sprite sheet with a size of 22×176 pixels, each image has a size of 22×22 pixels. The topmost image shows the start of the animation, the lowest image the end of the animation.
    53 
    53 
    54 By default this is `Data/Graphics/Dust.png`.
    54 By default this is `Data/Graphics/Dust.png`.
    55 
    55 
    56 === Objects ===
    56 === Objects ===
    57 Objects are single images of any size, they will be “attached” to the landscape and so become part of the landscape themselves. They can have any name as long as it is not any of the other names on this page. Objects have to be configured in `theme.cfg`.
    57 Objects are single images of any size, they will be “attached” to the landscape and so become part of the landscape themselves. The name has to follow the following rules:
       
    58  * It must have the suffix “`.png`”
       
    59  * It must not end with “`_mask.png`”
       
    60  * It must not be equal with any other file name mentioned on this page
       
    61 
       
    62 Objects have to be configured in `theme.cfg`.
       
    63 
       
    64 === Object masks ===
       
    65 Object masks are images which are applied to objects. They determine the terrain type of the pixels of an object. The image has to be of the same dimensions of the object in question. The masks work like `mask.png` of image maps, see [PresetMaps#mask.png].
       
    66 
       
    67 The name of an object mask file has to follow the pattern “`<object name>_mask.png`”, where “`<object name>`” is the file name of the object the mask is applied to, minus the suffix. For example, the mask of `cheese.png` would be `cheese_mask.png`. (See the Cheese theme in `Data/Themes/Cheese` in the Hedgewars installation directory for an example.)
       
    68 
       
    69 If an object mask is not provided, the object in question can be destroyed but will, unlike the main terrain, not leave the terrain background texture behind.
    58 
    70 
    59 === Sprays ===
    71 === Sprays ===
    60 Sprays are single images of any size, they will be drawn onto the land texture (by `LandTex.png`). They can have any name as long as it is not any of the other names on this page. Sprays have to be configured in `theme.cfg`.
    72 Sprays are single images of any size, they will be drawn onto the land texture (by `LandTex.png`). They can have any name as long as it is not any of the other names on this page. Sprays have to be configured in `theme.cfg`.
    61 
    73 
    62 == Background ==
    74 == Background ==