Traductions possibles :

Différences

Cette page vous donne les différences entre la révision choisie et la version actuelle de la page.

en:tutotunnel [2010/06/28 17:34]
gauthier créée
en:tutotunnel [2015/02/18 11:05] (version actuelle)
Ligne 1: Ligne 1:
-<WRAP box>[[:en:tutomakeobj3#objects|Come back to   objects]] </WRAP> +<WRAP box>[[en:tutomakeobj3#objects|Come back to   objects]] </WRAP>
====== Tunnels ====== ====== Tunnels ======
 +===== Png and dat patterns =====
-===== Graphics =====+Unlike ways and bridges, tunnels require few images. They are always composed of backimage (images displayed behind passing vehicles) and frontimage (images displayed before the vehicles). Here is the pattern:
 +{{  fr:tuto:dat:tunnel.png  }}
-Tunnels needs a few graphics : four pictures for entrances South and East : one displayed behind the vehicle (backimage) and one displayed before the vehicle (frontimage), two pictures for the entrances North and West that will be displayed before the vehicle (frontimage), the possible backimages that we can't see on entrances North and West; an icon and a cursor. Here is the graphical pattern :+<;WRAP box>obj=tunnel 
 + \\ waytype= 
 + \\ name= 
 + \\ cost= 
 + \\ maintenance= 
 + \\ topspeed= 
 + \\ way= 
 + \\ copyright= 
 + \\  
 + \\ intro_year=1800 
 + \\ intro_month=1 
 + \\ retire_year=2999 
 + \\ retire_month=1 
 + \\  
 + \\ icon=> source.1.2 
 + \\ cursor=source.1.3 
 + \\ frontimage[N]=source.0.0 
 + \\ backimage[N]=source.1.0 
 + \\ frontimage[W]=source.0.1 
 + \\ backimage[W]=source.1.1 
 + \\ frontimage[S]=source.0.2 
 + \\ frontimage[E]=source.0.3</WRAP>
 +Tunnels can have snowy images. To define them, a parameter must be added to the name of each image, equal to 0 for normal (summer) view and 1 for snowy (winter) view. Here is an example:
-{{  :fr:trametunnel.png  }}And the .dat file pattern according to it : +<WRAP box>backimage[N]=source.1.
- + \\  
- + \\ #becomes ..
-<WRAP box>icon= > image.1.2\\ cursor=image.1.3\\ frontimage[N]=image.0.0\\ backimage[N]=image.1.0\\ frontimage[W]=image.0.1\\ backimage[w]=image.1.1\\  frontimage[S]=image.0.2\\  frontimage[E]=image.0.3</WRAP> + \\  
- + \\ #normal view 
- + \\ backimage[N][0]=source.1.0 
-<WRAP info>This pattern is not very easy to understand, you can understand better with files you can download at the bottom of this page.</WRAP> + \\ #snowy view 
 + \\ backimage[N][1]=sourcewinter.1.0</WRAP>
===== Essential parameters ===== ===== Essential parameters =====
- 
|**Parameter**  |**Description   **  |**Content  **  |**Example  **  | |**Parameter**  |**Description   **  |**Content  **  |**Example  **  |
|obj |object type |tunnel || |obj |object type |tunnel ||
-|waytype |way type |internal_name |maglev_track |+|[[en:tutowaytype|waytype]] |way type |internal_name |maglev_track |
|name |name |texte |AMT_tunnel_1 | |name |name |texte |AMT_tunnel_1 |
|cost |price (%%*%%100c) |number |300000 | |cost |price (%%*%%100c) |number |300000 |
Ligne 32: Ligne 54:
|intro_year |introduction year |number |2025 | |intro_year |introduction year |number |2025 |
|intro_month |introduction month |number |1 | |intro_month |introduction month |number |1 |
 +|way |way whose graphics are used for the underground tunnel |name |AMT |
|copyright |name of the creator |text |Gauthier | |copyright |name of the creator |text |Gauthier |
 +<WRAP box>[[en:tutomakeobj3#objects|Come back to objects]] </WRAP>
-==== waytype ==== 
- 
- 
-[[:en:tutowaytype|Possible   waytypes]] 
- 
- 
-===== Example files ===== 
- 
- 
-<WRAP download>You'll find here MLM tunnels'source files. 
- 
- 
-{{:fr:tunnels.rar|Tunnels.rar}}</WRAP> 
- 
- 
-<WRAP box>[[:en:tutomakeobj3#objects|Come back to   objects]] </WRAP> 
- 
- 
-\\