summaryrefslogtreecommitdiff
path: root/rules/cave
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2010-11-14 19:56:11 +0100
committerStefan Beller <stefanbeller@googlemail.com>2010-11-20 20:21:02 +0100
commit0bc8034b04e852c69ffcf6e99563398e956a9672 (patch)
tree5fd7da2d528915e302dca97b61fa82581692f0fe /rules/cave
parentb98866cd80af1bb62b276dba7808da795672252b (diff)
downloadclientdata-0bc8034b04e852c69ffcf6e99563398e956a9672.tar.gz
clientdata-0bc8034b04e852c69ffcf6e99563398e956a9672.tar.bz2
clientdata-0bc8034b04e852c69ffcf6e99563398e956a9672.tar.xz
clientdata-0bc8034b04e852c69ffcf6e99563398e956a9672.zip
rules improved
Diffstat (limited to 'rules/cave')
-rw-r--r--rules/cave/rule_cave.txt2
-rw-r--r--rules/cave/rule_cave_001.tmx13
2 files changed, 15 insertions, 0 deletions
diff --git a/rules/cave/rule_cave.txt b/rules/cave/rule_cave.txt
index fc567ece..8308c683 100644
--- a/rules/cave/rule_cave.txt
+++ b/rules/cave/rule_cave.txt
@@ -4,6 +4,8 @@
# Rules for caves
# basic stuff: each rule-tile gets a default tile
+# here is a map attribute set: "DeleteTiles := true" This means to delete all
+# tiles in all touched tileslayers first.
./rule_cave_001.tmx
# straight walls:
diff --git a/rules/cave/rule_cave_001.tmx b/rules/cave/rule_cave_001.tmx
index c520e25a..e1788147 100644
--- a/rules/cave/rule_cave_001.tmx
+++ b/rules/cave/rule_cave_001.tmx
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="17" height="17" tilewidth="32" tileheight="32">
+ <properties>
+ <property name="DeleteTiles" value="true"/>
+ </properties>
<tileset firstgid="1" name="collision" tilewidth="32" tileheight="32">
<image source="../../graphics/tiles/collision.png" width="64" height="32"/>
</tileset>
@@ -40,4 +43,14 @@
H4sIAAAAAAAAA2NgoA1gIsCnFaCXPYQAExpNqjy93UEvMFjiZxQMHgAAgZ1QGoQEAAA=
</data>
</layer>
+ <layer name="rule_Over" width="17" height="17">
+ <data encoding="base64" compression="gzip">
+ H4sIAAAAAAAAA2NgGAWjYBSMgoEDAJPZHwSEBAAA
+ </data>
+ </layer>
+ <layer name="rule_Error" width="17" height="17">
+ <data encoding="base64" compression="gzip">
+ H4sIAAAAAAAAA2NgGAWjYBSMgoEDAJPZHwSEBAAA
+ </data>
+ </layer>
</map>