From The Mana World
< User:Argul | automapping
Line 27: | Line 27: | ||
[[Image:Rule_cave_002_ground.png|right|frame|This is the '''rule_Ground''' Layer. Here we see, where tiles will be placed within the Ground Layer.]] | [[Image:Rule_cave_002_ground.png|right|frame|This is the '''rule_Ground''' Layer. Here we see, where tiles will be placed within the Ground Layer.]] | ||
[[Image:Rule_cave_002_ruleset. | [[Image:Rule_cave_002_ruleset.png|left|frame|This is the '''RuleSet''' Layer. Any Tiles outside the Regions defined by the '''RuleRegions''' Layer will be ignored. This Layer describes which condition must be matched, to apply the specific rule: | ||
For the most left rule: There must be a 3 black RuleTiles north of a RuleTile. (Note: the most south Tile is an empty Tile. This Tile can be anything except all used Tiles. So Here is allowed every Tile except the black RuleTiles.)]] | For the most left rule: There must be a 3 black RuleTiles north of a RuleTile. (Note: the most south Tile is an empty Tile. This Tile can be anything except all used Tiles. So Here is allowed every Tile except the black RuleTiles.)]] | ||
Latest revision as of 08:29, 30 July 2011
Example of rules: Rule_cave_002
The rules which are used in the example can be found here:
In the future maybe they can be found in out git repository as well.
These rules are chosen by chance. They can explain most of the stuff very well.
some pictures
explanation of the file, describing the rules
In this section we will have a closer look to the Layers of the file Rules_cave_002.tmx:
The RuleRegions is always shown for better orientation.

This is the RuleSet Layer. Any Tiles outside the Regions defined by the RuleRegions Layer will be ignored. This Layer describes which condition must be matched, to apply the specific rule: For the most left rule: There must be a 3 black RuleTiles north of a RuleTile. (Note: the most south Tile is an empty Tile. This Tile can be anything except all used Tiles. So Here is allowed every Tile except the black RuleTiles.)