Graves.wiki
author sheepluva
Thu, 23 Mar 2023 20:47:32 +0000
changeset 2221 4bf8172a73a1
parent 2151 b558e7ded9ba
permissions -rw-r--r--
TableOfContents: TableOfContents: Adjust two Entries
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
446
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
     1
#summary A short guide explaing graves and how to create and use them
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
     2
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
     3
= Graves =
2136
fb06b29ebba0 Add images to hats and graves pages
Wuzzy <almikes@aol.com>
parents: 2085
diff changeset
     4
https://www.hedgewars.org/images/graves.png
2138
471e8a757973 Graves: Add newlines
Wuzzy
parents: 2136
diff changeset
     5
446
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
     6
== Explanation of graves ==
2048
0b7a5fadc2c8 Bump number of grave frames
Wuzzy <almikes@aol.com>
parents: 1210
diff changeset
     7
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
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
     8
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
     9
== Creating graves ==
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
    10
=== Unanimated graves ===
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
    11
To create an unanimated grave, draw a PNG image of size 32×32 pixels. You _can_ use semi-transparency.
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
    12
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
    13
=== Animated grave ===
1210
02d09713a6c8 Graves: 0.9.23 upd
Wuzzy
parents: 914
diff changeset
    14
An animated grave can have 2, 4, 8 or 16 frames.
914
2dcdf6a68bd7 Graves: Update grave frame count information
Wuzzy
parents: 798
diff changeset
    15
To create an animated grave, first you have to draw one image per frame, 32×32 pixels in size.
2dcdf6a68bd7 Graves: Update grave frame count information
Wuzzy
parents: 798
diff changeset
    16
2dcdf6a68bd7 Graves: Update grave frame count information
Wuzzy
parents: 798
diff changeset
    17
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
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
    18
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.
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
    19
914
2dcdf6a68bd7 Graves: Update grave frame count information
Wuzzy
parents: 798
diff changeset
    20
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
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
    21
914
2dcdf6a68bd7 Graves: Update grave frame count information
Wuzzy
parents: 798
diff changeset
    22
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
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
    23
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
    24
== Installing graves ==
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
    25
To install a grave, put it into `Data/Graphics/Graves` of the Hedgewars data directory.
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
    26
Make sure the name of your file ends with “`.png”. The displayed name in Hedgewars equals the file name without the suffix.
e79c0817829d Created wiki page about graves.
almikes@aol.com
parents:
diff changeset
    27
2151
b558e7ded9ba Graves: Add animated graves preview
Wuzzy
parents: 2138
diff changeset
    28
== Official graves ==
b558e7ded9ba Graves: Add animated graves preview
Wuzzy
parents: 2138
diff changeset
    29
A list of official graves can be seen [https://hg.hedgewars.org/hedgewars/raw-file/tip/misc/graves_js_anim.xhtml here].
b558e7ded9ba Graves: Add animated graves preview
Wuzzy
parents: 2138
diff changeset
    30
662
6ae2337ac487 Sharing section
Wuzzy
parents: 446
diff changeset
    31
== Sharing graves ==
6ae2337ac487 Sharing section
Wuzzy
parents: 446
diff changeset
    32
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.
6ae2337ac487 Sharing section
Wuzzy
parents: 446
diff changeset
    33
6ae2337ac487 Sharing section
Wuzzy
parents: 446
diff changeset
    34
In case the other player does not have the custom grave installed, the player will see the default grave (`Statue.png`) instead.
6ae2337ac487 Sharing section
Wuzzy
parents: 446
diff changeset
    35
2048
0b7a5fadc2c8 Bump number of grave frames
Wuzzy <almikes@aol.com>
parents: 1210
diff changeset
    36
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.
2138
471e8a757973 Graves: Add newlines
Wuzzy
parents: 2136
diff changeset
    37