summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-04-14 21:10:00 +0200
committerneoraider <devnull@localhost>2008-04-14 21:10:00 +0200
commit7df8aa74c6d11458248c5f5f3dd28eb762a2b407 (patch)
tree2894dde8c26a675ee2b37e03fcf0a0a1817eabff
parent9c24bd0bb259124e36367c9c8a62af7b19ba8e67 (diff)
downloadzoomedit-7df8aa74c6d11458248c5f5f3dd28eb762a2b407.tar
zoomedit-7df8aa74c6d11458248c5f5f3dd28eb762a2b407.zip
zoomedit:
* Updated test level and DTD
-rw-r--r--level.dtd4
-rw-r--r--level.lvl164
2 files changed, 87 insertions, 81 deletions
diff --git a/level.dtd b/level.dtd
index d04db1f..934eeda 100644
--- a/level.dtd
+++ b/level.dtd
@@ -14,7 +14,7 @@
z CDATA #REQUIRED
>
-<!ELEMENT room (triangle)*>
+<!ELEMENT room (floor, (triangle)*)>
<!ATTLIST room
id ID #REQUIRED
>
@@ -26,6 +26,8 @@
room2 IDREF #REQUIRED
>
+<!ELEMENT floor (triangle)*>
+
<!ELEMENT triangle (vertex, normal?, texcoords?, vertex, normal?, texcoords?, vertex, normal?, texcoords?)>
<!ATTLIST triangle
visible (true|false) "true"
diff --git a/level.lvl b/level.lvl
index 9c48213..d1226cb 100644
--- a/level.lvl
+++ b/level.lvl
@@ -8,6 +8,72 @@
</info>
<rooms>
<room id="r0">
+ <floor>
+ <triangle texture="t2">
+ <vertex x="-2.0" y="-2.0" z="-2.0"/>
+ <texcoords s="0.0" t="0.0"/>
+ <vertex x="2.0" y="-2.0" z="-2.0"/>
+ <texcoords s="0.0" t="1.0"/>
+ <vertex x="2.0" y="-2.0" z="-6.0"/>
+ <texcoords s="1.0" t="1.0"/>
+ </triangle>
+ <triangle texture="t2">
+ <vertex x="-2.0" y="-2.0" z="-2.0"/>
+ <texcoords s="0.0" t="0.0"/>
+ <vertex x="2.0" y="-2.0" z="-6.0"/>
+ <texcoords s="1.0" t="1.0"/>
+ <vertex x="-2.0" y="-2.0" z="-6.0"/>
+ <texcoords s="1.0" t="0.0"/>
+ </triangle>
+ <triangle texture="t2">
+ <vertex x="-2.0" y="-2.0" z="2.0"/>
+ <texcoords s="0.0" t="0.0"/>
+ <vertex x="2.0" y="-2.0" z="2.0"/>
+ <texcoords s="0.0" t="1.0"/>
+ <vertex x="2.0" y="-2.0" z="-2.0"/>
+ <texcoords s="1.0" t="1.0"/>
+ </triangle>
+ <triangle texture="t2">
+ <vertex x="-2.0" y="-2.0" z="2.0"/>
+ <texcoords s="0.0" t="0.0"/>
+ <vertex x="2.0" y="-2.0" z="-2.0"/>
+ <texcoords s="1.0" t="1.0"/>
+ <vertex x="-2.0" y="-2.0" z="-2.0"/>
+ <texcoords s="1.0" t="0.0"/>
+ </triangle>
+ <triangle texture="t2">
+ <vertex x="2.0" y="-2.0" z="-2.0"/>
+ <texcoords s="0.0" t="0.0"/>
+ <vertex x="6.0" y="-2.0" z="-2.0"/>
+ <texcoords s="0.0" t="1.0"/>
+ <vertex x="6.0" y="-2.0" z="-6.0"/>
+ <texcoords s="1.0" t="1.0"/>
+ </triangle>
+ <triangle texture="t2">
+ <vertex x="2.0" y="-2.0" z="-2.0"/>
+ <texcoords s="0.0" t="0.0"/>
+ <vertex x="6.0" y="-2.0" z="-6.0"/>
+ <texcoords s="1.0" t="1.0"/>
+ <vertex x="2.0" y="-2.0" z="-6.0"/>
+ <texcoords s="1.0" t="0.0"/>
+ </triangle>
+ <triangle texture="t2">
+ <vertex x="2.0" y="-2.0" z="-6.0"/>
+ <texcoords s="0.0" t="0.0"/>
+ <vertex x="6.0" y="-2.0" z="-6.0"/>
+ <texcoords s="0.0" t="1.0"/>
+ <vertex x="6.0" y="-2.0" z="-10.0"/>
+ <texcoords s="1.0" t="1.0"/>
+ </triangle>
+ <triangle texture="t2">
+ <vertex x="2.0" y="-2.0" z="-6.0"/>
+ <texcoords s="0.0" t="0.0"/>
+ <vertex x="6.0" y="-2.0" z="-10.0"/>
+ <texcoords s="1.0" t="1.0"/>
+ <vertex x="2.0" y="-2.0" z="-10.0"/>
+ <texcoords s="1.0" t="0.0"/>
+ </triangle>
+ </floor>
<triangle texture="t0">
<vertex x="-2.0" y="-2.0" z="-6.0"/>
<texcoords s="0.0" t="1.0"/>
@@ -72,38 +138,6 @@
<vertex x="-2.0" y="2.0" z="2.0"/>
<texcoords s="1.0" t="1.0"/>
</triangle>
- <triangle texture="t2">
- <vertex x="-2.0" y="-2.0" z="-2.0"/>
- <texcoords s="0.0" t="0.0"/>
- <vertex x="2.0" y="-2.0" z="-2.0"/>
- <texcoords s="0.0" t="1.0"/>
- <vertex x="2.0" y="-2.0" z="-6.0"/>
- <texcoords s="1.0" t="1.0"/>
- </triangle>
- <triangle texture="t2">
- <vertex x="-2.0" y="-2.0" z="-2.0"/>
- <texcoords s="0.0" t="0.0"/>
- <vertex x="2.0" y="-2.0" z="-6.0"/>
- <texcoords s="1.0" t="1.0"/>
- <vertex x="-2.0" y="-2.0" z="-6.0"/>
- <texcoords s="1.0" t="0.0"/>
- </triangle>
- <triangle texture="t2">
- <vertex x="-2.0" y="-2.0" z="2.0"/>
- <texcoords s="0.0" t="0.0"/>
- <vertex x="2.0" y="-2.0" z="2.0"/>
- <texcoords s="0.0" t="1.0"/>
- <vertex x="2.0" y="-2.0" z="-2.0"/>
- <texcoords s="1.0" t="1.0"/>
- </triangle>
- <triangle texture="t2">
- <vertex x="-2.0" y="-2.0" z="2.0"/>
- <texcoords s="0.0" t="0.0"/>
- <vertex x="2.0" y="-2.0" z="-2.0"/>
- <texcoords s="1.0" t="1.0"/>
- <vertex x="-2.0" y="-2.0" z="-2.0"/>
- <texcoords s="1.0" t="0.0"/>
- </triangle>
<triangle texture="t0">
<vertex x="-2.0" y="-2.0" z="-6.0"/>
<texcoords s="1.0" t="1.0"/>
@@ -152,38 +186,6 @@
<vertex x="2.0" y="-2.0" z="-2.0"/>
<texcoords s="0.0" t="1.0"/>
</triangle>
- <triangle texture="t2">
- <vertex x="2.0" y="-2.0" z="-2.0"/>
- <texcoords s="0.0" t="0.0"/>
- <vertex x="6.0" y="-2.0" z="-2.0"/>
- <texcoords s="0.0" t="1.0"/>
- <vertex x="6.0" y="-2.0" z="-6.0"/>
- <texcoords s="1.0" t="1.0"/>
- </triangle>
- <triangle texture="t2">
- <vertex x="2.0" y="-2.0" z="-2.0"/>
- <texcoords s="0.0" t="0.0"/>
- <vertex x="6.0" y="-2.0" z="-6.0"/>
- <texcoords s="1.0" t="1.0"/>
- <vertex x="2.0" y="-2.0" z="-6.0"/>
- <texcoords s="1.0" t="0.0"/>
- </triangle>
- <triangle texture="t2">
- <vertex x="2.0" y="-2.0" z="-6.0"/>
- <texcoords s="0.0" t="0.0"/>
- <vertex x="6.0" y="-2.0" z="-6.0"/>
- <texcoords s="0.0" t="1.0"/>
- <vertex x="6.0" y="-2.0" z="-10.0"/>
- <texcoords s="1.0" t="1.0"/>
- </triangle>
- <triangle texture="t2">
- <vertex x="2.0" y="-2.0" z="-6.0"/>
- <texcoords s="0.0" t="0.0"/>
- <vertex x="6.0" y="-2.0" z="-10.0"/>
- <texcoords s="1.0" t="1.0"/>
- <vertex x="2.0" y="-2.0" z="-10.0"/>
- <texcoords s="1.0" t="0.0"/>
- </triangle>
<triangle texture="t1">
<vertex x="2.0" y="2.0" z="-2.0"/>
<texcoords s="1.0" t="1.0"/>
@@ -282,22 +284,24 @@
</triangle>
</room>
<room id="r1">
- <triangle texture="t2">
- <vertex x="-2.0" y="-2.0" z="-2.0"/>
- <texcoords s="0.0" t="0.0"/>
- <vertex x="-2.0" y="-2.0" z="2.0"/>
- <texcoords s="0.0" t="1.0"/>
- <vertex x="2.0" y="-2.0" z="2.0"/>
- <texcoords s="1.0" t="1.0"/>
- </triangle>
- <triangle texture="t2">
- <vertex x="-2.0" y="-2.0" z="-2.0"/>
- <texcoords s="0.0" t="0.0"/>
- <vertex x="2.0" y="-2.0" z="2.0"/>
- <texcoords s="1.0" t="1.0"/>
- <vertex x="2.0" y="-2.0" z="-2.0"/>
- <texcoords s="1.0" t="0.0"/>
- </triangle>
+ <floor>
+ <triangle texture="t2">
+ <vertex x="-2.0" y="-2.0" z="-2.0"/>
+ <texcoords s="0.0" t="0.0"/>
+ <vertex x="-2.0" y="-2.0" z="2.0"/>
+ <texcoords s="0.0" t="1.0"/>
+ <vertex x="2.0" y="-2.0" z="2.0"/>
+ <texcoords s="1.0" t="1.0"/>
+ </triangle>
+ <triangle texture="t2">
+ <vertex x="-2.0" y="-2.0" z="-2.0"/>
+ <texcoords s="0.0" t="0.0"/>
+ <vertex x="2.0" y="-2.0" z="2.0"/>
+ <texcoords s="1.0" t="1.0"/>
+ <vertex x="2.0" y="-2.0" z="-2.0"/>
+ <texcoords s="1.0" t="0.0"/>
+ </triangle>
+ </floor>
<triangle texture="t0">
<vertex x="-2.0" y="2.0" z="2.0"/>
<texcoords s="0.0" t="0.0"/>