pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] rev 2314 - trunk/contrib


From: Ingo Ruhnke
Subject: [Pingus-CVS] rev 2314 - trunk/contrib
Date: Fri, 07 May 2004 17:57:21 +0200

Author: grumbel
Date: 2004-05-07 17:57:21 +0200 (Fri, 07 May 2004)
New Revision: 2314

Added:
   trunk/contrib/surface2sprite.xsl
Log:
- fixed liquid datafile
- some other stuff
- loading normal levels works, but still full of graphic bugs

Added: trunk/contrib/surface2sprite.xsl
===================================================================
--- trunk/contrib/surface2sprite.xsl    2004-05-07 15:57:09 UTC (rev 2313)
+++ trunk/contrib/surface2sprite.xsl    2004-05-07 15:57:21 UTC (rev 2314)
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
+  
+  <xsl:output 
+    method="xml" 
+    indent="yes" 
+    encoding="ISO-8859-1" />
+
+  
+  <xsl:template match="node()|@*">
+    <xsl:copy><xsl:apply-templates select="@* | node()" /></xsl:copy>
+  </xsl:template>
+
+  <xsl:template match="surface">
+    <xsl:choose>
+      <xsl:when test="@array">
+        <sprite name="address@hidden">
+          <image file="address@hidden">
+            <grid
+              pos="address@hidden,address@hidden"
+              size="address@hidden,address@hidden"
+              array="address@hidden" />
+          </image>
+        </sprite>
+      </xsl:when>
+      <xsl:otherwise>
+        <sprite name="address@hidden">
+          <image file="address@hidden" />
+        </sprite>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+</xsl:stylesheet>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]