howto/en/create a map
From Wormux
[edit]
Pictures
Map :
| Sky :
| Wind particules (optionnal) :
| Preview :
|
[edit]
File config.xml
The file should have the following structure and format:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE resources SYSTEM "../map.dtd" []>
<resources>
<author>
<name>YOUR NAME</name>
<nickname>YOUR NICKNAME</nickname>
<email>YOU AT MAIL DOT COM</email>
<country>YOUR COUNTRY</country>
</author>
<surface name="sky" file="NAMEOFSKYFILE.jpg" />
<surface name="map" file="NAMEOFMAPFILE.png" />
<surface name="preview" file="NAMEOFPREVIEWFILE.jpg" />
<name>MAP NAME</name>
<water>0</water>
<nb_mine>5</nb_mine>
<is_open>1</is_open>
<sprite name="wind_particle">
<image file="NAMEOFWINDPARTICULES.png">
<grid pos="0,0" size="X,Y" array="1,1"/>
</image>
</sprite>
<wind>
<nbr_sprite>6</nbr_sprite>
<need_flip>1</need_flip>
<mass>5.0</mass>
<wind_factor>8.5</wind_factor>
<air_resist_factor>0.2</air_resist_factor>
<gravity_factor>0.2</gravity_factor>
<rebounding>true</rebounding>
<rebound_factor>3.3</rebound_factor>
</wind>
<music_playlist>NAMEOFMUSICFILE</music_playlist>
</resources>
- <water>: 1=water, 0=no water.
- <nb_mine>: specify the number of mine in the map.
- <is_open>: specify if the map is open or closed (an 1=island, 0=cave).
- size="X,Y": Set windparticules size (exemple : size="63,63").
- grid pos="X,Y" and array="X,Y" are options used for animated particules.
- <wind>: Options define some factors for wind particules.
[edit]
Use the new map : Files
Finally you've got one directory with 5 files:
- map.png
- sky.jpg
- preview.jpg
- windparticules.png
- config.xml
Put this directory in ~/.wormux/map/ (under GNU/Linux) or c:\program files\wormux\data\map\ (under Windows)









