446
|
1 |
#summary A short guide explaing graves and how to create and use them
|
|
2 |
|
|
3 |
= Graves =
|
2085
|
4 |
|
446
|
5 |
== Explanation of graves ==
|
2048
|
6 |
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 16 frames.
|
446
|
7 |
|
|
8 |
== Creating graves ==
|
|
9 |
=== Unanimated graves ===
|
|
10 |
To create an unanimated grave, draw a PNG image of size 32×32 pixels. You _can_ use semi-transparency.
|
|
11 |
|
|
12 |
=== Animated grave ===
|
1210
|
13 |
An animated grave can have 2, 4, 8 or 16 frames.
|
914
|
14 |
To create an animated grave, first you have to draw one image per frame, 32×32 pixels in size.
|
|
15 |
|
|
16 |
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.
|
446
|
17 |
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.
|
|
18 |
|
914
|
19 |
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.
|
446
|
20 |
|
914
|
21 |
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.
|
446
|
22 |
|
|
23 |
== Installing graves ==
|
|
24 |
To install a grave, put it into `Data/Graphics/Graves` of the Hedgewars data directory.
|
|
25 |
Make sure the name of your file ends with “`.png”. The displayed name in Hedgewars equals the file name without the suffix.
|
|
26 |
|
662
|
27 |
== Sharing graves ==
|
|
28 |
Custom graves (graves which are not part of the official Hedgewars installation) are only visible to other players if they have the grave installed under the same file name.
|
|
29 |
|
|
30 |
In case the other player does not have the custom grave installed, the player will see the default grave (`Statue.png`) instead.
|
|
31 |
|
2048
|
32 |
You are encouraged to share your graves in the thread “[https://www.hedgewars.org/node/2360 Graves! additions, submissions, information.]”, where submissions are considered for official inclusion into Hedgewars.
|