PresetMaps: Add title, fix header levels
authorWuzzy
Sun, 17 Jan 2016 12:49:55 +0000
changeset 747 5b084a7e8574
parent 746 d53a01a00832
child 748 2051f403ddac
PresetMaps: Add title, fix header levels
PresetMaps.wiki
--- a/PresetMaps.wiki	Sun Jan 17 12:48:30 2016 +0000
+++ b/PresetMaps.wiki	Sun Jan 17 12:49:55 2016 +0000
@@ -1,10 +1,10 @@
 #summary This page describes the technically relevant aspects of preset maps in Hedgewars
 
+= Image maps and mission maps =
+
 <wiki:toc max_depth="3" />
 
-----
-
-= Introduction =
+== Introduction ==
 
 One of the map types Hedgewars supports are maps that were previously drawn by an artist.
 
@@ -14,7 +14,7 @@
 
 ----
 
-= Location =
+== Location ==
 All maps are automatically loaded from the [HedgewarsDataDir Hedgewars data directory].
 
 In this directory there has to be a folder for every map, named after the desired map name.
@@ -25,7 +25,7 @@
   * _Data/Maps/Sheep_
   * etc.
 
-== Mission Maps ==
+=== Mission maps ===
 
 Missions may use preset maps that aren't located in the *Data/Maps* directory.
 
@@ -41,12 +41,12 @@
 
 ----
 
-= Files =
+== Files ==
 
 Within the folder of every map the following files are expected to be there:
 
-== Basic files ==
-=== `map.cfg` ===
+=== Basic files ===
+==== `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.
@@ -55,7 +55,7 @@
 
 
 
-=== `map.png` ===
+==== `map.png` ====
 Image of visible land area.
   * Usually _width/length ratio_ of 2:1
   * Typical size: 2048 x 1024
@@ -69,12 +69,12 @@
   * If there is no _mask.png_, this image will also be used for deciding what pixels are subject to collision: _alpha value_ not equal to 0 (so below max transparency) will be considered land
   * As of 0.9.19+, map.png is optional if a mask.png is provided.  If there is no map.png, the theme will be used to decorate the map.  No objects will be added to white areas.  Use black if you want objects.
 
-=== `preview.png` ===
+==== `preview.png` ====
 Preview image of the map
   * size: 256 x 128_
 
-== Optional files (for advanced features and adjustments) ==
-=== `mask.png` ===
+=== Optional files (for advanced features and adjustments) ===
+==== `mask.png` ====
 Image defining the collision areas of the map.
 
   * Pixels with _alpha value_ = 0 will not be subject to collision
@@ -91,12 +91,12 @@
 (Transparent areas may not be recognizeable as such in your browser/image preview program, so open e.g. in [http://www.gimp.org/ Gimp])
 
 
-=== `map.lua` ===
+==== `map.lua` ====
 A Lua script to be used together with the map.
 
 See the LuaGuide for more information on Hedgewars’ scripting support.
 
-== Image format ==
+=== Image format ===
   * PNG, 8-bit/color RGBA (so 32 bit)
   * Gamma correction and colour profiles should not be applied, in order to ensure the map is loaded identically on OSX as it is on other operating systems by SDL. To ensure this happens, please run in the command-line (requires Pngcrush):
 <code language="bash">pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB old/map.png new/map.png</code>
@@ -105,15 +105,15 @@
 or be sure your image editing software has these options disabled.
 
 ----
-= Editing software recommendations =
-== Images ==
+== Editing software recommendations ==
+=== Images ===
 A vector based drawing software is recommended for creating the maps.
 
 (Reasons for that: Edges are usually automatically smoothed on export; Easier to meet [http://www.hedgewars.org/node/704 Hedgewars Graphics rules, style constraints, guidelines]; Images are easier to change, adjust and maintain style)
 
 If you don't have one, check out the free open-source [http://inkscape.org Inkscape]: There are various [http://lmgtfy.com/?q=inkscape+tutorial Inkscape tutorials] online, so you should be able to get started easily.
 
-= Sharing image maps =
+== Sharing image maps ==
 You can only play a game with a custom image map against other players online if all participating players have the image map installed under the same name.
 
 If any player does not have the image map installed, the game will fail to start and an error message is displayed.