en fr

es pl

sv de
direct download download direct download

howto/en/create a map

From Wormux

Pictures

Map :
  • format : png
  • island (no possibility to walk out of map)
  • resolution ≥ 3000x1500px
  • use transparancy for background
Sky :
  • format : jpg
  • same size than map
Wind particules (optionnal) :
  • format : png or jpg
  • draw one particule (only the biggest one)
  • use transparancy for background
Preview :
  • format : jpg
  • 300x225px
  • more representative picture as possible

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.

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)