summaryrefslogtreecommitdiff
path: root/testing_data/tiled_examples/sewer_automap
diff options
context:
space:
mode:
Diffstat (limited to 'testing_data/tiled_examples/sewer_automap')
-rw-r--r--testing_data/tiled_examples/sewer_automap/rule_001.tmx29
-rw-r--r--testing_data/tiled_examples/sewer_automap/rule_002.tmx24
-rw-r--r--testing_data/tiled_examples/sewer_automap/rule_003.tmx30
-rw-r--r--testing_data/tiled_examples/sewer_automap/rule_004.tmx29
-rw-r--r--testing_data/tiled_examples/sewer_automap/rule_005.tmx29
-rw-r--r--testing_data/tiled_examples/sewer_automap/rule_006.tmx39
-rw-r--r--testing_data/tiled_examples/sewer_automap/rule_007.tmx34
-rw-r--r--testing_data/tiled_examples/sewer_automap/rule_008.tmx35
-rw-r--r--testing_data/tiled_examples/sewer_automap/rule_009.tmx30
-rw-r--r--testing_data/tiled_examples/sewer_automap/rules.txt142
-rw-r--r--testing_data/tiled_examples/sewer_automap/rules_sewers.pngbin0 -> 314 bytes
-rw-r--r--testing_data/tiled_examples/sewer_automap/sewers.tmx15
12 files changed, 436 insertions, 0 deletions
diff --git a/testing_data/tiled_examples/sewer_automap/rule_001.tmx b/testing_data/tiled_examples/sewer_automap/rule_001.tmx
new file mode 100644
index 0000000..e05c002
--- /dev/null
+++ b/testing_data/tiled_examples/sewer_automap/rule_001.tmx
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE map SYSTEM "http://mapeditor.org/dtd/1.0/map.dtd">
+<map version="1.0" orientation="orthogonal" width="7" height="3" tilewidth="24" tileheight="24">
+ <properties>
+ <property name="AutomappingRadius" value="3"/>
+ <property name="DeleteTiles" value="yes"/>
+ </properties>
+ <tileset firstgid="1" name="sewer_tileset" tilewidth="24" tileheight="24">
+ <image source="../sewer_tileset.png" trans="ff00ff" width="192" height="217"/>
+ </tileset>
+ <tileset firstgid="73" name="rules_sewers" tilewidth="24" tileheight="24">
+ <image source="rules_sewers.png" width="72" height="48"/>
+ </tileset>
+ <layer name="Regions" width="7" height="3">
+ <data encoding="base64" compression="zlib">
+ eJxjYMAPPHHQ+AAAJfgA3A==
+ </data>
+ </layer>
+ <layer name="Input_set" width="7" height="3">
+ <data encoding="base64" compression="zlib">
+ eJxjYMAPPKG0F5T2JqAeBAAmbADf
+ </data>
+ </layer>
+ <layer name="Output_Ground" width="7" height="3">
+ <data encoding="base64" compression="zlib">
+ eJxjYMAPeKG0DJRWIqAeBAAMkABM
+ </data>
+ </layer>
+</map>
diff --git a/testing_data/tiled_examples/sewer_automap/rule_002.tmx b/testing_data/tiled_examples/sewer_automap/rule_002.tmx
new file mode 100644
index 0000000..82203c5
--- /dev/null
+++ b/testing_data/tiled_examples/sewer_automap/rule_002.tmx
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<map version="1.0" orientation="orthogonal" width="8" height="5" tilewidth="24" tileheight="24">
+ <tileset firstgid="1" name="sewer_tileset" tilewidth="24" tileheight="24">
+ <image source="../sewer_tileset.png" trans="ff00ff" width="192" height="217"/>
+ </tileset>
+ <tileset firstgid="73" name="rules_sewers" tilewidth="24" tileheight="24">
+ <image source="rules_sewers.png" width="72" height="48"/>
+ </tileset>
+ <layer name="Regions" width="8" height="5">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAMfLDQPnjkiTGPWLUA1AACYQ==
+ </data>
+ </layer>
+ <layer name="Input_set" width="8" height="5">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAMvKG0FxLfC0neC00dIeBFgloAz9QCVQ==
+ </data>
+ </layer>
+ <layer name="Output_Ground" width="8" height="5" visible="0">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAMtND4yjjUSRFhFgwoEqkOADFsAIk=
+ </data>
+ </layer>
+</map>
diff --git a/testing_data/tiled_examples/sewer_automap/rule_003.tmx b/testing_data/tiled_examples/sewer_automap/rule_003.tmx
new file mode 100644
index 0000000..a8edb5d
--- /dev/null
+++ b/testing_data/tiled_examples/sewer_automap/rule_003.tmx
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE map SYSTEM "http://mapeditor.org/dtd/1.0/map.dtd">
+<map version="1.0" orientation="orthogonal" width="8" height="6" tilewidth="24" tileheight="24">
+ <tileset firstgid="1" name="sewer_tileset" tilewidth="24" tileheight="24">
+ <image source="../sewer_tileset.png" trans="ff00ff" width="192" height="217"/>
+ </tileset>
+ <tileset firstgid="73" name="rules_sewers" tilewidth="24" tileheight="24">
+ <image source="rules_sewers.png" width="72" height="48"/>
+ </tileset>
+ <layer name="Regions" width="8" height="6">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAMfLDQPnjkydVPDgAAZj8DRQ==
+ </data>
+ </layer>
+ <layer name="Input_set" width="8" height="6">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAMPAmIYZPHphadpgYAAL88Abc=
+ </data>
+ </layer>
+ <layer name="Output_Ground" width="8" height="6">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAMmLCI8SCxuQjoF0Lj8xFhJ7EAABfQADk=
+ </data>
+ </layer>
+ <layer name="Output_Over" width="8" height="6">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAesBKQ5yXBLGoBAAmIABM=
+ </data>
+ </layer>
+</map>
diff --git a/testing_data/tiled_examples/sewer_automap/rule_004.tmx b/testing_data/tiled_examples/sewer_automap/rule_004.tmx
new file mode 100644
index 0000000..09c97a7
--- /dev/null
+++ b/testing_data/tiled_examples/sewer_automap/rule_004.tmx
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<map version="1.0" orientation="orthogonal" width="7" height="6" tilewidth="24" tileheight="24">
+ <tileset firstgid="1" name="sewer_tileset" tilewidth="24" tileheight="24">
+ <image source="../sewer_tileset.png" trans="ff00ff" width="192" height="217"/>
+ </tileset>
+ <tileset firstgid="73" name="rules_sewers" tilewidth="24" tileheight="24">
+ <image source="rules_sewers.png" width="72" height="48"/>
+ </tileset>
+ <layer name="Regions" width="7" height="6">
+ <data encoding="base64" compression="zlib">
+ eJxjYMAPfKAYnU0rOVwAAJk3BME=
+ </data>
+ </layer>
+ <layer name="Input_set" width="7" height="6">
+ <data encoding="base64" compression="zlib">
+ eJxjYMAPPKEYnU2pHLodhAAAb/8D/w==
+ </data>
+ </layer>
+ <layer name="Output_Ground" width="7" height="6">
+ <data encoding="base64" compression="zlib">
+ eJxjYMAPePHI8aHxeYiUIwcAABkoAEI=
+ </data>
+ </layer>
+ <layer name="Output_Over" width="7" height="6">
+ <data encoding="base64" compression="zlib">
+ eJxjYMAPOND47ATU0woAAAgwABA=
+ </data>
+ </layer>
+</map>
diff --git a/testing_data/tiled_examples/sewer_automap/rule_005.tmx b/testing_data/tiled_examples/sewer_automap/rule_005.tmx
new file mode 100644
index 0000000..57a49d0
--- /dev/null
+++ b/testing_data/tiled_examples/sewer_automap/rule_005.tmx
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<map version="1.0" orientation="orthogonal" width="13" height="6" tilewidth="24" tileheight="24">
+ <tileset firstgid="1" name="sewer_tileset" tilewidth="24" tileheight="24">
+ <image source="../sewer_tileset.png" trans="ff00ff" width="192" height="217"/>
+ </tileset>
+ <tileset firstgid="73" name="rules_sewers" tilewidth="24" tileheight="24">
+ <image source="rules_sewers.png" width="72" height="48"/>
+ </tileset>
+ <layer name="Regions" width="13" height="6">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAP+BDgk6LHBwcbnxy19ZAKAMzFByE=
+ </data>
+ </layer>
+ <layer name="Input_set" width="13" height="6">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAPeBLgD6QeYsyj1BwAd2cCSQ==
+ </data>
+ </layer>
+ <layer name="Output_Ground" width="13" height="6" visible="0">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAPiKHxRYjQw43G5yRCjzAaX5AIPfQAAE2oAGM=
+ </data>
+ </layer>
+ <layer name="Output_Over" width="13" height="6" visible="0">
+ <data encoding="base64" compression="zlib">
+ eJxjYBgcgAVKs5GghwdK81HZLcQAABQQACU=
+ </data>
+ </layer>
+</map>
diff --git a/testing_data/tiled_examples/sewer_automap/rule_006.tmx b/testing_data/tiled_examples/sewer_automap/rule_006.tmx
new file mode 100644
index 0000000..9a155d0
--- /dev/null
+++ b/testing_data/tiled_examples/sewer_automap/rule_006.tmx
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<map version="1.0" orientation="orthogonal" width="7" height="5" tilewidth="24" tileheight="24">
+ <tileset firstgid="1" name="sewer_tileset" tilewidth="24" tileheight="24">
+ <image source="../sewer_tileset.png" trans="ff00ff" width="192" height="217"/>
+ </tileset>
+ <tileset firstgid="73" name="rules_sewers" tilewidth="24" tileheight="24">
+ <image source="rules_sewers.png" width="72" height="48"/>
+ </tileset>
+ <layer name="Regions" width="7" height="5">
+ <data encoding="base64" compression="zlib">
+ eJxjYMAPfKAYnU2JHC4AAAEbA5E=
+ </data>
+ </layer>
+ <layer name="Input_set" width="7" height="5">
+ <data encoding="base64" compression="zlib">
+ eJxjYKAMeKLRyOKeWNj4AABbzAG3
+ </data>
+ </layer>
+ <layer name="InputNot_set" width="7" height="5" opacity="0.44">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAfeBLgkwoAKZwAkw==
+ </data>
+ </layer>
+ <layer name="Output_Ground" width="7" height="5" visible="0">
+ <data encoding="base64" compression="zlib">
+ eJxjYKAM8KLRlAAAB9wAGw==
+ </data>
+ </layer>
+ <layer name="Output_Over" width="7" height="5" visible="0">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAMeNFoWgEACrQAGw==
+ </data>
+ </layer>
+ <layer name="Output_Over2" width="7" height="5" visible="0">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAM5KG0AhFqKQEAGSQAQA==
+ </data>
+ </layer>
+</map>
diff --git a/testing_data/tiled_examples/sewer_automap/rule_007.tmx b/testing_data/tiled_examples/sewer_automap/rule_007.tmx
new file mode 100644
index 0000000..757e7c1
--- /dev/null
+++ b/testing_data/tiled_examples/sewer_automap/rule_007.tmx
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<map version="1.0" orientation="orthogonal" width="7" height="7" tilewidth="24" tileheight="24">
+ <tileset firstgid="1" name="sewer_tileset" tilewidth="24" tileheight="24">
+ <image source="../sewer_tileset.png" trans="ff00ff" width="192" height="217"/>
+ </tileset>
+ <tileset firstgid="73" name="rules_sewers" tilewidth="24" tileheight="24">
+ <image source="rules_sewers.png" width="72" height="48"/>
+ </tileset>
+ <layer name="Regions" width="7" height="7">
+ <data encoding="base64" compression="zlib">
+ eJxjYMAPfKAYnU1Ijp5mAgDb0wTB
+ </data>
+ </layer>
+ <layer name="Input_set" width="7" height="7">
+ <data encoding="base64" compression="zlib">
+ eJxjYKAMeKPRtNaHDQAAdfQBLQ==
+ </data>
+ </layer>
+ <layer name="InputNot_set" width="7" height="7">
+ <data encoding="base64" compression="zlib">
+ eJxjYMAPvKEYnc2AxsbGx2cmLj4++3ABAGBjA4U=
+ </data>
+ </layer>
+ <layer name="InputNot_set" width="7" height="7" visible="0">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAMPNFodHFcfELmEeITax4A5OQCSQ==
+ </data>
+ </layer>
+ <layer name="Output_Ground" width="7" height="7" visible="0">
+ <data encoding="base64" compression="zlib">
+ eJxjYKAMSEJpaRL1aUJpbQrtBwEAMlQAiQ==
+ </data>
+ </layer>
+</map>
diff --git a/testing_data/tiled_examples/sewer_automap/rule_008.tmx b/testing_data/tiled_examples/sewer_automap/rule_008.tmx
new file mode 100644
index 0000000..7166d83
--- /dev/null
+++ b/testing_data/tiled_examples/sewer_automap/rule_008.tmx
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE map SYSTEM "http://mapeditor.org/dtd/1.0/map.dtd">
+<map version="1.0" orientation="orthogonal" width="4" height="4" tilewidth="24" tileheight="24">
+ <properties>
+ <property name="NoOverlappingRules" value="1"/>
+ </properties>
+ <tileset firstgid="1" name="sewer_tileset" tilewidth="24" tileheight="24">
+ <image source="../sewer_tileset.png" trans="ff00ff" width="192" height="217"/>
+ </tileset>
+ <tileset firstgid="73" name="rules_sewers" tilewidth="24" tileheight="24">
+ <image source="rules_sewers.png" width="72" height="48"/>
+ </tileset>
+ <layer name="regions_input" width="4" height="4">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAMfKAYGwAAD7AAmQ==
+ </data>
+ </layer>
+ <layer name="regions_output" width="4" height="4">
+ <data encoding="base64" compression="zlib">
+ eJxjYMAEPljEcAEADVAATQ==
+ </data>
+ </layer>
+ <layer name="input_Over" width="4" height="4">
+ <data encoding="base64" compression="zlib">
+ eJxjYCAMWICYF4ccAAHoABI=
+ </data>
+ </layer>
+ <objectgroup name="output_GroundEffects" width="4" height="4">
+ <object name="1" type="Effect" x="24" y="24" width="24" height="24">
+ <properties>
+ <property name="predefined Value" value=""/>
+ </properties>
+ </object>
+ </objectgroup>
+</map>
diff --git a/testing_data/tiled_examples/sewer_automap/rule_009.tmx b/testing_data/tiled_examples/sewer_automap/rule_009.tmx
new file mode 100644
index 0000000..ae8c0ab
--- /dev/null
+++ b/testing_data/tiled_examples/sewer_automap/rule_009.tmx
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE map SYSTEM "http://mapeditor.org/dtd/1.0/map.dtd">
+<map version="1.0" orientation="orthogonal" width="4" height="3" tilewidth="24" tileheight="24">
+ <properties>
+ <property name="NoOverlappingRules" value="1"/>
+ </properties>
+ <tileset firstgid="1" name="sewer_tileset" tilewidth="24" tileheight="24">
+ <image source="../sewer_tileset.png" trans="ff00ff" width="192" height="217"/>
+ </tileset>
+ <tileset firstgid="73" name="rules_sewers" tilewidth="24" tileheight="24">
+ <image source="rules_sewers.png" width="72" height="48"/>
+ </tileset>
+ <layer name="regions" width="4" height="3">
+ <data encoding="base64" compression="zlib">
+ eJxjYMAEPlCMDQAAD6AAmQ==
+ </data>
+ </layer>
+ <layer name="input_Ground" width="4" height="3">
+ <data encoding="base64" compression="zlib">
+ eJxjYMAESkCshUUcBAAH2ABN
+ </data>
+ </layer>
+ <objectgroup name="output_GroundEffects" width="4" height="3">
+ <object name="2" type="Trigger" x="48" y="24" width="24" height="24">
+ <properties>
+ <property name="triggering" value="trigger42"/>
+ </properties>
+ </object>
+ </objectgroup>
+</map>
diff --git a/testing_data/tiled_examples/sewer_automap/rules.txt b/testing_data/tiled_examples/sewer_automap/rules.txt
new file mode 100644
index 0000000..8d93775
--- /dev/null
+++ b/testing_data/tiled_examples/sewer_automap/rules.txt
@@ -0,0 +1,142 @@
+# rules.txt
+# Copyright 2011, Stefan Beller <stefanbeller@googlemail.com>
+#
+# This file is part of the sewers example for automapping for Tiled.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the Free
+# Software Foundation; either version 2 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+# lines starting with # or // are comments
+# all other lines will be parsed and treated as filenames.
+
+# Feel free to comment out certain rules, to see if and how they are working.
+# So have fun experimenting with this bunch of rules :)
+
+# First apply only one tile rules to fill the regions
+#
+# We mark the place, where rules are defined, with the RuleRegion layer.
+# So whereever there are tiles at the ruleRegion layer, it will be used as a rule.
+# In the RuleSet layer we can define, which combination of tiles must occur
+# to trigger the specific rule.
+# The layers Rule_Ground, Rule_Over and Rule_Over2 define the output of the rules.
+#
+# Which tiles should I use in the regions layer?
+# Actually there can be any tiles, but it should be the same tiles for one rule.
+# So use whatever you want, maybe a colorful tile so you can see easily that these
+# tiles are used for defining the rule region.
+#
+# In the very first rulefile used for Automapping it might be useful to define
+# some map properties:
+# "DeleteTiles" = "true", "false" - This property determines if all tiles in the
+# whole region where Automapping takes place
+# are deleted.
+# That is useful, when not all layers are covered
+# at all places. (Check the Over and Over2 layer!)
+# "AutoMappingRadius" = 0,1,2... - This property determines which regions are
+# automatically remapped at live Automapping.
+# When you draw directly into the map,
+# not the whole map is remapped, but only a little
+# place around. Here you can specify how many
+# tiles at least should be remapped.
+
+./rule_001.tmx
+
+
+
+
+# Setup the right transition tiles at the border of light blue stone tiles
+#
+# Basically it is the same as the first rule, we are just using bigger rules.
+# Whenever there is a light blue tile beside a grey tile, one of these rules
+# will apply.
+
+./rule_002.tmx
+
+
+
+
+# Now put straight walls
+#
+# Note: Compare the regions and the set layer!
+# Not at all places where a rule is defined, there is a tile in the input_set layer.
+# This means that there can be any tiles except those used by the rule.
+# So there are no black tiles allowed, when there are no tiles in the input_set
+# layer.
+
+./rule_003.tmx
+
+
+
+
+# Now we add inner corners for walls
+#
+# (No new features introduced)
+
+./rule_004.tmx
+
+
+
+
+# Now we add the corners for walls
+#
+# (No new features introduced)
+
+./rule_005.tmx
+
+
+
+
+# Correct the error we got in the two previous rulefiles (overwrite it once more)
+#
+# Here we can see the use of input_set and input_NotSet
+# With the input_NotSet we can define which tiles must not be used at certain places
+# Important sideeffect: the empty regions in ruleSet can be anything now, including
+# black tiles as used here!
+#
+# So when you use both input_Set and input_NotSet, you need to specify exactly what
+# is allowed at which places.
+
+./rule_006.tmx
+
+
+
+
+# Setup the corner stones for light blue stone tiles
+#
+# Hey, there are multiple layers called input_NotSet!
+# Yes, when you need to specify multiple allowed or disallowed tiles per
+# position, you can use multiple layers of input_Set and input_NotSet
+
+./rule_007.tmx
+
+
+
+
+
+# Setup objects now
+# The objects '1' will be placed. They will be placed based on the
+# Over layer, which was created by previous rules.
+# The placement of objects is done in south-east corners.
+
+./rule_008.tmx
+
+
+
+
+# Setup another object.
+# This object is based on input from the Ground layer.
+# It will put objects to borderstones which are near an end of that borderline.
+#
+
+./rule_009.tmx
diff --git a/testing_data/tiled_examples/sewer_automap/rules_sewers.png b/testing_data/tiled_examples/sewer_automap/rules_sewers.png
new file mode 100644
index 0000000..7214e28
--- /dev/null
+++ b/testing_data/tiled_examples/sewer_automap/rules_sewers.png
Binary files differ
diff --git a/testing_data/tiled_examples/sewer_automap/sewers.tmx b/testing_data/tiled_examples/sewer_automap/sewers.tmx
new file mode 100644
index 0000000..4af5a15
--- /dev/null
+++ b/testing_data/tiled_examples/sewer_automap/sewers.tmx
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE map SYSTEM "http://mapeditor.org/dtd/1.0/map.dtd">
+<map version="1.0" orientation="orthogonal" width="31" height="31" tilewidth="24" tileheight="24">
+ <tileset firstgid="1" name="rules_sewers" tilewidth="24" tileheight="24">
+ <image source="rules_sewers.png" width="72" height="48"/>
+ </tileset>
+ <tileset firstgid="7" name="sewer_tileset" tilewidth="24" tileheight="24">
+ <image source="../sewer_tileset.png" trans="ff00ff" width="192" height="217"/>
+ </tileset>
+ <layer name="set" width="31" height="31">
+ <data encoding="base64" compression="zlib">
+ eJztlUEOwCAIBLH+/8/eDSBQ1jTNHuZiDKOGxSEigxDyCWYRtPsx6HBH74hyn2r9zT2T7uj+jPemW+sfrRai16K1ut1ebtEZ8+aFdxaU27qj5a7O1FOfRd1v86XlZc+T9RZVt3aG6FrX/0UIIVkWa5oFDA==
+ </data>
+ </layer>
+</map>