Graves.wiki
changeset 914 2dcdf6a68bd7
parent 798 30c5f1ebd552
child 1210 02d09713a6c8
equal deleted inserted replaced
913:33b5b51f54d6 914:2dcdf6a68bd7
     1 #summary A short guide explaing graves and how to create and use them
     1 #summary A short guide explaing graves and how to create and use them
     2 
     2 
     3 = Graves =
     3 = Graves =
     4 == Explanation of graves ==
     4 == Explanation of graves ==
     5 Graves are small images which appear when a hedgehog dies. Graves are chosen on a per-team basis. A grave can be either be unanimated or animated. Animated graves can consist of up to 8 frames.
     5 Graves are small images which appear when a hedgehog dies. Graves are chosen on a per-team basis. A grave can be either be unanimated or animated. Animated graves can consist of up to 8 frames (16 frames in 0.9.23).
     6 
     6 
     7 == Creating graves ==
     7 == Creating graves ==
     8 === Unanimated graves ===
     8 === Unanimated graves ===
     9 To create an unanimated grave, draw a PNG image of size 32×32 pixels. You _can_ use semi-transparency.
     9 To create an unanimated grave, draw a PNG image of size 32×32 pixels. You _can_ use semi-transparency.
    10 
    10 
    11 === Animated grave ===
    11 === Animated grave ===
    12 To create an animated grave, first you have to draw 2-8 images of a size of 32×32 pixels each. Those images have to be combined in a single image. The width of the final image is alwas 32 pixels, the height is _n_ · 32 pixels, where _n_ is the number of frames (single image in animation) you chose.
    12 An animated grave can have 2, 4 or 8 frames. In Hedgewars 0.9.23 or later, 16 frames are also possible.
       
    13 To create an animated grave, first you have to draw one image per frame, 32×32 pixels in size.
       
    14 
       
    15 Those images have to be combined to a single image. The width of the final image is alwas 32 pixels, the height is _n_ · 32 pixels, where _n_ is the number of frames (single image in animation) you chose.
    13 To combine: The first image is placed at the top, the next image is placed 32 pixels below that, the next one 64 pixels, and so on.
    16 To combine: The first image is placed at the top, the next image is placed 32 pixels below that, the next one 64 pixels, and so on.
    14 
    17 
    15 Each of these sub-images is a frame in the final grave animation. It starts with the topmost image, continues with the image below, and so on. After the last sub-image, the animation repeats with the first frame.
    18 Each of these sub-images is a frame in the final grave animation. It starts with the topmost image, continues with the image below, and so on. After the last sub-image, the animation repeats with the first frame. Each frame lasts for 128 milliseconds.
    16 
    19 
    17 The first image will be also the one which is shown in the team creation menu as preview. The grave will only be animated while in the game.
    20 The first image will be also the one which is shown in the team creation menu as preview. The grave will only be animated in the game.
    18 
    21 
    19 == Installing graves ==
    22 == Installing graves ==
    20 To install a grave, put it into `Data/Graphics/Graves` of the Hedgewars data directory.
    23 To install a grave, put it into `Data/Graphics/Graves` of the Hedgewars data directory.
    21 Make sure the name of your file ends with “`.png”. The displayed name in Hedgewars equals the file name without the suffix.
    24 Make sure the name of your file ends with “`.png”. The displayed name in Hedgewars equals the file name without the suffix.
    22 
    25