Difference between revisions of "Tiles Tutorial"

From The Battle for Wesnoth Wiki
 
Line 21: Line 21:
  
 
1 tile + the 6 basic transitions:  
 
1 tile + the 6 basic transitions:  
[[Image:http://www.idi.ntnu.no/~haskjold/wesnoth/info/normal_tiles.png]]
+
[[Image:Example.jpg]]
  
 
[[Category: Art Tutorials]]
 
[[Category: Art Tutorials]]

Revision as of 05:39, 26 September 2005

Normal Tiles

Normal tiles consist of a set of 72x72 tiles which are the variants used for a given terrain type. The probability for showing the different variants are given in terrain-graphics.cfg. In addition each terrain type has a set of transition tiles:

  • 6 basic transitions: n, ne, se, s, sw, nw
  • 6 "2-side trans": n-ne, ne-se, se-s, s-sw, sw-nw, nw-n
  • 6 "3-side trans": n-ne-se, ne-se-s, se-s-sw, s-sw-nw, sw-nw-n, nw-n-ne
  • 6 "4-side trans": n-ne-se-s, ne-se-s, se-s-sw-nw, s-sw-nw-nw, sw-nw-n-ne, nw-n-ne-se

Far from all terrain types uses all these possible transitions, if any.

There is possible to make several transitions and use different ones depending on which terrain type is adjacent. There are also need for some special trans with some terrain when they are adjacent to fx castle.

Transitions are drawn around tiles according to a what is defined in terrain-graphics.cfg. Each terrain is placed in a given layer. This defines which terrain will draw their transition when adjacent to another. Meaning that the one which are layered the "highest" will draw their transitions on top of terrain layered further down.

Each of these transitions are stored in seperate files.


Example 1.

1 tile + the 6 basic transitions: File:Example.jpg