--- a/PresetMaps.wiki Fri May 05 23:40:06 2017 +0100
+++ b/PresetMaps.wiki Sat May 06 00:43:20 2017 +0200
@@ -49,7 +49,7 @@
==== `map.cfg` ====
Configuration file.
- * First line is the name of the [Theme] used by the map (for background and clouds, flakes, water, etc). As of 0.9.19+, this theme may be overridden when setting up the game.
+ * First line is the name of the [Themes theme] used by the map (for background and clouds, flakes, water, etc). As of 0.9.19+, this theme may be overridden when setting up the game.
* Second line is max. number of hedgehogs supported. If the second line is not provided, it is assumed to be 18
@@ -119,4 +119,4 @@
If any player does not have the image map installed, the game will fail to start and an error message is displayed.
-If you wish, you can post your custom-made image map in the [https://www.hedgewars.org/forum/19 Content Creations] forum.
\ No newline at end of file
+If you wish, you can post your custom-made image map in the [https://www.hedgewars.org/forum/19 Content Creations] forum.
--- a/TableOfContents.wiki Fri May 05 23:40:06 2017 +0100
+++ b/TableOfContents.wiki Sat May 06 00:43:20 2017 +0200
@@ -22,7 +22,7 @@
* [HWPFormat HWP files]
* Graphics and Sound
* [Themes]
- * [Theme theme.cfg]
+ * [ThemeCfg theme.cfg]
* [ThemeFiles Theme files]
* Maps
* [PresetMaps Image maps and mission maps]
--- a/Theme.wiki Fri May 05 23:40:06 2017 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,197 +0,0 @@
-#summary Structure of the theme.cfg file
-
-= `theme.cfg` =
-The file `theme.cfg` gives the engine the values associated with a certain theme, to complement the graphics. To learn more about the general file structure of themes, see [ThemeFiles].
-It is structured with a list of keys, each seperated by line breaks. Each key is followed by an equals sign followed a value. The value depends on the key.
-
-Example:
-<code>sky = 23, 8, 33
-border = 7, 72, 102
-music = Art.ogg</code>
-
-There are also keys that replace existing keys under certain conditions, all keys preceding with “`sd-`” are used during Sudden Death and all keys with “`rq-`” are used when the graphics quality is reduced.
-
-Following is the list of all current keys and their values, it is important to have the right number of values. Most keys may only be used once.
-
-The values red, green, blue and opacity are in the range of one byte and can be specified in both decimal or hexadecimal form. The range are `0` - `255` or `$00` - `$FF`.
-
-Any line can be made into a comment line by having a semicolon (“`;`”) at the beginning. Comments are ignored by Hedgewars.
-
-Literally all lines in the `theme.cfg` file are optional, thus an empty file is valid. Everything has a default value. However, some default values are not really useful (e.g. the water or sky color) and you should therefore explicitly specify enough values.
-
-== `sky` ==
-The colour of the sky.
-
-<code>Values: red, green, blue</code>
-
-<code>Default: 0, 0, 0</code>
-
-== `rq-sky` ==
-The sky color in reduced quality mode. If present, it is used instead of `sky` on low quality.
-
-<code>Values: red, green, blue</code>
-
-== `border` ==
-The colour of the outline of explosions.
-
-<code>Values: red, green, blue</code>
-
-<code>Default: 80, 80, 80</code>
-
-== `water-top` ==
-The colour of the topmost part of the water (under the `BlueWater.png`) before Sudden Death.
-This makes a gradient together with `water-bottom`. The default color
-is black which is usually not what you want.
-In combination with the default `BlueWater.png`, the recommended value is `$54, $5C, $9D`.
-
-<code>Values: red, green, blue</code>
-
-<code>Default: 0, 0, 0</code>
-
-== `water-bottom` ==
-The colour of the lowest part of the water before Sudden Death.
-This makes a gradient together with `water-top`. The default color
-is black which is usually not what you want.
-In combination with the default `BlueWater.png`, the recommended value is `$34, $3C, $7D`.
-
-<code>Values: red, green, blue</code>
-
-<code>Default: 0, 0, 0</code>
-
-== `sd-water-bottom` ==
-The colour of the lowest part of the water while in Sudden Death.
-This makes a gradient together with `sd-water-top`.
-The default color neatly matches the default `SDWater.png`.
-
-<code>Values: red, green, blue</code>
-
-<code>Default: 150, 112, 169</code>
-
-== `sd-water-top` ==
-The colour of the topmost part of the water (under the `SDWater.png`) while in Sudden Death.
-This makes a gradient together with `sd-water-bottom`.
-The default color neatly matches the default `SDWater.png`.
-
-<code>Values: red, green, blue</code>
-
-<code>Default: 182, 144, 201</code>
-
-== `water-opacity` ==
-The water opacity before Sudden Death. Opacity of the water affects how visible gears in the water are. `0` makes it fully transparent, whereas `255` or `$FF` makes it fully opaque. If the water is fully opaque, the drowning animation is skipped when a hedgehog drowns.
-
-In combination with the default `BlueWater.png`, the recommended value for this is `$80`, which also is the default.
-
-<code>Values: opacity</code>
-
-<code>Default: $80</code>
-
-== `sd-water-opacity` ==
-The water opacity while in Sudden Death. Syntax and default value is equivalent to `water-opacity`.
-
-== `water-animation` (0.9.23) ==
-Specified a custom water animation and flowing speed before Sudden Death. By default, the water just moves to the right and has no special animation.
-
-<code>Values: frames, frame ticks, movement speed</code>
-
- * `frames`: Number of frames in `BlueWater.png`. The frames in this image should be stacked horizontally. The height of this image must be divisible by `frames`
- * `frame ticks`: Duration of a single frame. Must be >0 if `frames`>1, otherwise it is ignored
- * `movement speed`: How fast the water moves to the right. Higher values means faster movement. If negative, it moves to the left. Use 0 to stop movement
-
-<code>Default: 1, 0, 1</code>
-
-== `sd-water-animation` (0.9.23) ==
-Sudden Death equivalent of `water-animation`, uses `SDWater.png`.
-
-== `music` ==
-Name of the music file to be played in the theme before Sudden Death, e.g. `Nature.ogg`. You find music tracks in `Data/Music` of the Hedgewars installation directory. The file name is case-sensitive!
-
-<code>Values: filename</code>
-
-No music is played by default.
-
-== `sd-music` (0.9.21) ==
-Name of the music file to be played in the theme while in Sudden Death, e.g. `hell.ogg`. If `music` was not specified, the Sudden Death has no default music as well. You find music tracks in `Data/Music` of the Hedgewars installation directory. The file name is case-sensitive!
-
-<code>Values: filename</code>
-
-Default: `sdmusic.ogg` (only if `music` was specified, no music otherwise)
-
-== `clouds` ==
-The number of clouds to create, before Sudden Death. Uses `Clouds.png`.
-
-<code>Values: number</code>
-
-<code>Default: 9</code>
-
-== `sd-clouds` ==
-Number of clouds while in Sudden Death, uses the file `SDClouds.png`. By default it is the same number as `clouds` or `9` if `clouds` was not specified as well.
-
-<code>Values: number</code>
-
-<code>Default: 9</code>
-
-== `flatten-clouds` ==
-Normally, the clouds vary in size and are drawn on different layers. But if this key is present (any value) in `theme.cfg`, all clouds have the same size and are on the same layer (background).
-
-== `flakes` ==
-Values for the flakes of this theme before Sudden Death. Uses `Flake.png`.
-
- * `number`: Number of visible flakes.
- * `frames`: Number of frames used in `Flake.png`
- * `frame ticks`: Number of ticks a frame is shown, after that the next frame is shown (a tick currently equals 1 millisecond).
-Since 0.9.21: A value of 0 indicates that each flake should keep displaying the exact frame that was selected randomly when the flake was created.
-*Tip*: If you want to have multiple static flakes in 0.9.20 or earlier, you can set the animation length to a ridiculous high value. Sometimes, a flake will still change the displayed frame, but it will rarely happen.
- * `speed`: Rotation speed of flake
- * `fall speed`: Falling speed of flake. Since 0.9.23, this can be negative for rising flakes
-
-<code>Values: number, frames, frame ticks, speed, fall speed</code>
-
-No flakes are used by default.
-
-== `sd-flakes` ==
-Sudden death version of `flakes`, the parameters are the same as in `flakes`. This uses `SDFlake.png`. If `flakes` was unspecified, then there are no Sudden Death flakes by default, the default shown below only applies if `flakes` has been specified.
-
-<code>Values: number, frames, frame ticks, speed, fall speed</code>
-
-<code>Default: X, 4, 0, 15, 250</code>
-
-(The “X” means the default number of Sudden Death flakes is variable. It depends on the window size and the terrain width.)
-
-== `flatten-flakes` ==
-Normally, the flakes vary in size and are drawn on different layers, some of them even in front of the terrain. But if this key is present (any value) in `theme.cfg`, all flakes have the same size and are on the same layer: In front of the sky and horizont and behind the terrain.
-
-== `object` ==
-There may be multiple object keys in the file, each one representing one land object.
-
- * `filename`: The object’s filename (without the “.png”). Case-sensitive.
- * `max`: The maximum number of this object that may be generated in a map (must by between 1 and 32
- * `buriedrects_num`: (optional): Number of rectangles that must be buried in the terrain. If this value is ommitted, a value of 1 is assumed. Only available in version 0.9.23 or later
- * `buriedrects`: A rectangle that must be buried in the terrain (`left, top, width, height`). In version 0.9.23, if all 4 values are 0, the object will be placed on top of the water
- * `minvisible`: The minimum amount of rectangles that must be visible
- * `visiblerects`: List of the rectangles for being visible (`left, top, width, height`)
-
-Syntax for version 0.9.22, or when you only need 1 buried rectangle:
-
-<code>Values: filename, max, buriedrec, minvisible, visiblerec</code>
-
-Syntax when using multiple buried rectangles in 0.9.23:
-
-<code>Values: filename, max, buriedrects_num, buriedrects, minvisible, visiblerects</code>
-
-Here's an example where `visiblerects` and the `buriedrects` are visualized on an ancient picture:
-
-https://hedgewars.org/images/avematantheme/hw-avematan.rects.png
-
-The large rectangle shows a `visiblerects` and the small one shows a `buriedrects`.
-
-== `spray` ==
-There may be several spray keys in the file, each one representing one spray object.
-The `name` is the case-sensitive name of the PNG file (without the file name suffix) of the graphics file, and `number` is the rough number of instances of this spray that may be added to the map. The number is the average number of sprays that are normally placed on a random medium-sized island. For larger and smaller landscapes, this number will be automatically scaled up or down. Please note that this number only specifies a rough goal, the actual number of created sprays may vary and you may have to play a bit with this number in order to find a good value.
-
-<code>Values: name, number</code>
-
-== `ice` ==
-If this key is present (any value), girders become slippery like ice. This also applies to placed girders. This significantly changes the gameplay of your theme, so use wisely. If this key is not present, the terrain is not slippery.
-
-== `snow` ==
-If this key is present (any value), the flakes which are normally purely decorational now behave like snowflakes. When they collide with terrain, they become a part of the landscape. This significantly changes the gameplay of your theme, so use wisely. If this key is not present, the flakes are purely decorational.
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ThemeCfg.wiki Sat May 06 00:43:20 2017 +0200
@@ -0,0 +1,197 @@
+#summary Structure of the theme.cfg file
+
+= `theme.cfg` =
+The file `theme.cfg` gives the engine the values associated with a certain theme, to complement the graphics. To learn more about the general file structure of themes, see [ThemeFiles].
+It is structured with a list of keys, each seperated by line breaks. Each key is followed by an equals sign followed a value. The value depends on the key.
+
+Example:
+<code>sky = 23, 8, 33
+border = 7, 72, 102
+music = Art.ogg</code>
+
+There are also keys that replace existing keys under certain conditions, all keys preceding with “`sd-`” are used during Sudden Death and all keys with “`rq-`” are used when the graphics quality is reduced.
+
+Following is the list of all current keys and their values, it is important to have the right number of values. Most keys may only be used once.
+
+The values red, green, blue and opacity are in the range of one byte and can be specified in both decimal or hexadecimal form. The range are `0` - `255` or `$00` - `$FF`.
+
+Any line can be made into a comment line by having a semicolon (“`;`”) at the beginning. Comments are ignored by Hedgewars.
+
+Literally all lines in the `theme.cfg` file are optional, thus an empty file is valid. Everything has a default value. However, some default values are not really useful (e.g. the water or sky color) and you should therefore explicitly specify enough values.
+
+== `sky` ==
+The colour of the sky.
+
+<code>Values: red, green, blue</code>
+
+<code>Default: 0, 0, 0</code>
+
+== `rq-sky` ==
+The sky color in reduced quality mode. If present, it is used instead of `sky` on low quality.
+
+<code>Values: red, green, blue</code>
+
+== `border` ==
+The colour of the outline of explosions.
+
+<code>Values: red, green, blue</code>
+
+<code>Default: 80, 80, 80</code>
+
+== `water-top` ==
+The colour of the topmost part of the water (under the `BlueWater.png`) before Sudden Death.
+This makes a gradient together with `water-bottom`. The default color
+is black which is usually not what you want.
+In combination with the default `BlueWater.png`, the recommended value is `$54, $5C, $9D`.
+
+<code>Values: red, green, blue</code>
+
+<code>Default: 0, 0, 0</code>
+
+== `water-bottom` ==
+The colour of the lowest part of the water before Sudden Death.
+This makes a gradient together with `water-top`. The default color
+is black which is usually not what you want.
+In combination with the default `BlueWater.png`, the recommended value is `$34, $3C, $7D`.
+
+<code>Values: red, green, blue</code>
+
+<code>Default: 0, 0, 0</code>
+
+== `sd-water-bottom` ==
+The colour of the lowest part of the water while in Sudden Death.
+This makes a gradient together with `sd-water-top`.
+The default color neatly matches the default `SDWater.png`.
+
+<code>Values: red, green, blue</code>
+
+<code>Default: 150, 112, 169</code>
+
+== `sd-water-top` ==
+The colour of the topmost part of the water (under the `SDWater.png`) while in Sudden Death.
+This makes a gradient together with `sd-water-bottom`.
+The default color neatly matches the default `SDWater.png`.
+
+<code>Values: red, green, blue</code>
+
+<code>Default: 182, 144, 201</code>
+
+== `water-opacity` ==
+The water opacity before Sudden Death. Opacity of the water affects how visible gears in the water are. `0` makes it fully transparent, whereas `255` or `$FF` makes it fully opaque. If the water is fully opaque, the drowning animation is skipped when a hedgehog drowns.
+
+In combination with the default `BlueWater.png`, the recommended value for this is `$80`, which also is the default.
+
+<code>Values: opacity</code>
+
+<code>Default: $80</code>
+
+== `sd-water-opacity` ==
+The water opacity while in Sudden Death. Syntax and default value is equivalent to `water-opacity`.
+
+== `water-animation` (0.9.23) ==
+Specified a custom water animation and flowing speed before Sudden Death. By default, the water just moves to the right and has no special animation.
+
+<code>Values: frames, frame ticks, movement speed</code>
+
+ * `frames`: Number of frames in `BlueWater.png`. The frames in this image should be stacked horizontally. The height of this image must be divisible by `frames`
+ * `frame ticks`: Duration of a single frame. Must be >0 if `frames`>1, otherwise it is ignored
+ * `movement speed`: How fast the water moves to the right. Higher values means faster movement. If negative, it moves to the left. Use 0 to stop movement
+
+<code>Default: 1, 0, 1</code>
+
+== `sd-water-animation` (0.9.23) ==
+Sudden Death equivalent of `water-animation`, uses `SDWater.png`.
+
+== `music` ==
+Name of the music file to be played in the theme before Sudden Death, e.g. `Nature.ogg`. You find music tracks in `Data/Music` of the Hedgewars installation directory. The file name is case-sensitive!
+
+<code>Values: filename</code>
+
+No music is played by default.
+
+== `sd-music` (0.9.21) ==
+Name of the music file to be played in the theme while in Sudden Death, e.g. `hell.ogg`. If `music` was not specified, the Sudden Death has no default music as well. You find music tracks in `Data/Music` of the Hedgewars installation directory. The file name is case-sensitive!
+
+<code>Values: filename</code>
+
+Default: `sdmusic.ogg` (only if `music` was specified, no music otherwise)
+
+== `clouds` ==
+The number of clouds to create, before Sudden Death. Uses `Clouds.png`.
+
+<code>Values: number</code>
+
+<code>Default: 9</code>
+
+== `sd-clouds` ==
+Number of clouds while in Sudden Death, uses the file `SDClouds.png`. By default it is the same number as `clouds` or `9` if `clouds` was not specified as well.
+
+<code>Values: number</code>
+
+<code>Default: 9</code>
+
+== `flatten-clouds` ==
+Normally, the clouds vary in size and are drawn on different layers. But if this key is present (any value) in `theme.cfg`, all clouds have the same size and are on the same layer (background).
+
+== `flakes` ==
+Values for the flakes of this theme before Sudden Death. Uses `Flake.png`.
+
+ * `number`: Number of visible flakes.
+ * `frames`: Number of frames used in `Flake.png`
+ * `frame ticks`: Number of ticks a frame is shown, after that the next frame is shown (a tick currently equals 1 millisecond).
+Since 0.9.21: A value of 0 indicates that each flake should keep displaying the exact frame that was selected randomly when the flake was created.
+*Tip*: If you want to have multiple static flakes in 0.9.20 or earlier, you can set the animation length to a ridiculous high value. Sometimes, a flake will still change the displayed frame, but it will rarely happen.
+ * `speed`: Rotation speed of flake
+ * `fall speed`: Falling speed of flake. Since 0.9.23, this can be negative for rising flakes
+
+<code>Values: number, frames, frame ticks, speed, fall speed</code>
+
+No flakes are used by default.
+
+== `sd-flakes` ==
+Sudden death version of `flakes`, the parameters are the same as in `flakes`. This uses `SDFlake.png`. If `flakes` was unspecified, then there are no Sudden Death flakes by default, the default shown below only applies if `flakes` has been specified.
+
+<code>Values: number, frames, frame ticks, speed, fall speed</code>
+
+<code>Default: X, 4, 0, 15, 250</code>
+
+(The “X” means the default number of Sudden Death flakes is variable. It depends on the window size and the terrain width.)
+
+== `flatten-flakes` ==
+Normally, the flakes vary in size and are drawn on different layers, some of them even in front of the terrain. But if this key is present (any value) in `theme.cfg`, all flakes have the same size and are on the same layer: In front of the sky and horizont and behind the terrain.
+
+== `object` ==
+There may be multiple object keys in the file, each one representing one land object.
+
+ * `filename`: The object’s filename (without the “.png”). Case-sensitive.
+ * `max`: The maximum number of this object that may be generated in a map (must by between 1 and 32
+ * `buriedrects_num`: (optional): Number of rectangles that must be buried in the terrain. If this value is ommitted, a value of 1 is assumed. Only available in version 0.9.23 or later
+ * `buriedrects`: A rectangle that must be buried in the terrain (`left, top, width, height`). In version 0.9.23, if all 4 values are 0, the object will be placed on top of the water
+ * `minvisible`: The minimum amount of rectangles that must be visible
+ * `visiblerects`: List of the rectangles for being visible (`left, top, width, height`)
+
+Syntax for version 0.9.22, or when you only need 1 buried rectangle:
+
+<code>Values: filename, max, buriedrec, minvisible, visiblerec</code>
+
+Syntax when using multiple buried rectangles in 0.9.23:
+
+<code>Values: filename, max, buriedrects_num, buriedrects, minvisible, visiblerects</code>
+
+Here's an example where `visiblerects` and the `buriedrects` are visualized on an ancient picture:
+
+https://hedgewars.org/images/avematantheme/hw-avematan.rects.png
+
+The large rectangle shows a `visiblerects` and the small one shows a `buriedrects`.
+
+== `spray` ==
+There may be several spray keys in the file, each one representing one spray object.
+The `name` is the case-sensitive name of the PNG file (without the file name suffix) of the graphics file, and `number` is the rough number of instances of this spray that may be added to the map. The number is the average number of sprays that are normally placed on a random medium-sized island. For larger and smaller landscapes, this number will be automatically scaled up or down. Please note that this number only specifies a rough goal, the actual number of created sprays may vary and you may have to play a bit with this number in order to find a good value.
+
+<code>Values: name, number</code>
+
+== `ice` ==
+If this key is present (any value), girders become slippery like ice. This also applies to placed girders. This significantly changes the gameplay of your theme, so use wisely. If this key is not present, the terrain is not slippery.
+
+== `snow` ==
+If this key is present (any value), the flakes which are normally purely decorational now behave like snowflakes. When they collide with terrain, they become a part of the landscape. This significantly changes the gameplay of your theme, so use wisely. If this key is not present, the flakes are purely decorational.
\ No newline at end of file
--- a/ThemeFiles.wiki Fri May 05 23:40:06 2017 +0100
+++ b/ThemeFiles.wiki Sat May 06 00:43:20 2017 +0200
@@ -3,7 +3,7 @@
== Introduction ==
This page explains the meaning of the several files which are used by themes. Please note that not all files are neccessary to create a theme, many files have default fallback versions with identical names in `Data/Graphics` or `Data/Graphics/SuddenDeath` of your Hedgewars installation.
-To create a theme, you need a bunch of graphics and a `theme.cfg` (explained under [Theme]). All graphics mentioned here have to in the PNG format.
+To create a theme, you need a bunch of graphics and a `theme.cfg` (explained under [ThemeCfg]). All graphics mentioned here have to in the PNG format.
Please note that this is not a tutorial, it is a reference page designed to look up how to do stuff.
@@ -33,7 +33,7 @@
Large version of the icon. It must be of size 65×64 pixels.
=== `theme.cfg` ===
-A text file which configures various aspects of the theme. The structure of this file is explained in [Theme].
+A text file which configures various aspects of the theme. The structure of this file is explained in [ThemeCfg].
== Terrain ==
=== `LandTex.png` ===
@@ -188,4 +188,4 @@
Sudden Death version of `Splash.png`. If missing, `Data/Graphics/SuddenDeath/SDSplash.png` is used.
=== `SDDroplet.png` ===
-Sudden Death version of `Droplet.png`. If missing, `Data/Graphics/SuddenDeath/SDDroplet.png` is used.
\ No newline at end of file
+Sudden Death version of `Droplet.png`. If missing, `Data/Graphics/SuddenDeath/SDDroplet.png` is used.
--- a/Themes.wiki Fri May 05 23:40:06 2017 +0100
+++ b/Themes.wiki Sat May 06 00:43:20 2017 +0200
@@ -12,7 +12,7 @@
These were the basics. Read the following pages to continue:
- * [Theme theme.cfg]
+ * [ThemeCfg theme.cfg]
* [ThemeFiles Theme files]
== Sharing themes ==