changeset 153:9c47bf162ea1

snake has plastic surgery
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Tue, 13 Sep 2011 22:39:37 +0200
parents 8502e422cefc
children acfcd3db4bca
files data/tiles/common/snake/snake-body-r.png data/tiles/common/snake/snake-body.png data/tiles/common/snake/snake-corner-tl.png data/tiles/common/snake/snake-head-eye-r.png data/tiles/common/snake/snake-head-mouth-open-r.png data/tiles/common/snake/snake-head-r.png data/tiles/common/snake/snake-head-tongue-r.png data/tiles/common/snake/snake-head.png data/tiles/common/snake/snake-tail-r.png data/tiles/common/snake/snake-tail.png mamba/snake.py source/svg/tiles/common/snake/snake-body-r.svg source/svg/tiles/common/snake/snake-corner-tl.svg source/svg/tiles/common/snake/snake-head-eye-r.svg source/svg/tiles/common/snake/snake-head-mouth-open-r.svg source/svg/tiles/common/snake/snake-head-r.svg source/svg/tiles/common/snake/snake-head-tongue-r.svg source/svg/tiles/common/snake/snake-head.svg source/svg/tiles/common/snake/snake-tail-r.svg source/svg/tiles/common/snake/snake-tail.svg
diffstat 20 files changed, 250 insertions(+), 505 deletions(-) [+]
line wrap: on
line diff
Binary file data/tiles/common/snake/snake-body-r.png has changed
Binary file data/tiles/common/snake/snake-body.png has changed
Binary file data/tiles/common/snake/snake-corner-tl.png has changed
Binary file data/tiles/common/snake/snake-head-eye-r.png has changed
Binary file data/tiles/common/snake/snake-head-mouth-open-r.png has changed
Binary file data/tiles/common/snake/snake-head-r.png has changed
Binary file data/tiles/common/snake/snake-head-tongue-r.png has changed
Binary file data/tiles/common/snake/snake-head.png has changed
Binary file data/tiles/common/snake/snake-tail-r.png has changed
Binary file data/tiles/common/snake/snake-tail.png has changed
--- a/mamba/snake.py	Tue Sep 13 21:32:38 2011 +0200
+++ b/mamba/snake.py	Tue Sep 13 22:39:37 2011 +0200
@@ -78,7 +78,7 @@
 
     def __init__(self, image_name, tile_pos):
         super(Segment, self).__init__()
-        self._base_image = "/".join(["snake", image_name])
+        self.set_base_image(image_name)
         self._colour_overlay = self.GREEN
         self._orientation = Snake.UP
 
@@ -86,6 +86,9 @@
         self.update_image()
         self.set_tile_pos(tile_pos)
 
+    def set_base_image(self, image_name):
+        self._base_image = "/".join(["snake", image_name])
+
     def make_images(self):
         self._images = {}
         for orientation, muts in [
@@ -112,29 +115,41 @@
 
 
 class Head(Segment):
+    CLOSED = "snake-head"
+    OPEN = "snake-head-mouth-open-r"
+    EYE = mutators.Overlay("tiles/common/snake/snake-head-eye-r.png")
+    TONGUE = mutators.Overlay("tiles/common/snake/snake-head-tongue-r.png")
+
     def __init__(self, tile_pos):
-        self._eye = mutators.Overlay("tiles/common/snake/snake-head-eye-r.png")
-        self._tongue = mutators.Overlay(
-                "tiles/common/snake/snake-head-tongue-r.png")
-        self._detail_mutators = (self._eye,)
-        super(Head, self).__init__("snake-head-mouth-open-r", tile_pos)
+        self._detail_mutators = (self.EYE,)
+        super(Head, self).__init__(self.CLOSED, tile_pos)
+
+    def mouth_open(self):
+        self.set_base_image(self.OPEN)
+        self.make_images()
+        self.update_image()
+
+    def mouth_closed(self):
+        self.set_base_image(self.CLOSED)
+        self.make_images()
+        self.update_image()
 
     def tongue_out(self):
-        self._detail_mutators = (self._eye, self._tongue)
+        self._detail_mutators = (self.EYE, self.TONGUE)
         self.make_images()
         self.update_image()
 
     def tongue_in(self):
-        self._detail_mutators = (self._eye,)
+        self._detail_mutators = (self.EYE,)
         self.make_images()
         self.update_image()
 
 
 class Body(Segment):
     def __init__(self, tile_pos):
-        super(Body, self).__init__("snake-body-r", tile_pos)
+        super(Body, self).__init__("snake-body", tile_pos)
 
 
 class Tail(Segment):
     def __init__(self, tile_pos):
-        super(Tail, self).__init__("snake-tail-r", tile_pos)
+        super(Tail, self).__init__("snake-tail", tile_pos)
--- a/source/svg/tiles/common/snake/snake-body-r.svg	Tue Sep 13 21:32:38 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
-   xmlns:cc="http://creativecommons.org/ns#"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:svg="http://www.w3.org/2000/svg"
-   xmlns="http://www.w3.org/2000/svg"
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   width="200"
-   height="200"
-   id="svg2"
-   version="1.1"
-   inkscape:version="0.48.1 r9760"
-   sodipodi:docname="snake-body-r.svg">
-  <defs
-     id="defs4">
-    <linearGradient
-       id="linearGradient3765">
-      <stop
-         style="stop-color:#0000ff;stop-opacity:1;"
-         offset="0"
-         id="stop3781" />
-      <stop
-         id="stop3783"
-         offset="0.5"
-         style="stop-color:#0000ff;stop-opacity:0;" />
-      <stop
-         id="stop3769"
-         offset="1"
-         style="stop-color:#0000ff;stop-opacity:1;" />
-    </linearGradient>
-  </defs>
-  <sodipodi:namedview
-     id="base"
-     pagecolor="#ffffff"
-     bordercolor="#666666"
-     borderopacity="1.0"
-     inkscape:pageopacity="0.0"
-     inkscape:pageshadow="2"
-     inkscape:zoom="2.915"
-     inkscape:cx="42.71012"
-     inkscape:cy="113.72213"
-     inkscape:document-units="px"
-     inkscape:current-layer="layer1"
-     showgrid="false"
-     inkscape:window-width="1172"
-     inkscape:window-height="752"
-     inkscape:window-x="108"
-     inkscape:window-y="0"
-     inkscape:window-maximized="1" />
-  <metadata
-     id="metadata7">
-    <rdf:RDF>
-      <cc:Work
-         rdf:about="">
-        <dc:format>image/svg+xml</dc:format>
-        <dc:type
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
-        <dc:title />
-      </cc:Work>
-    </rdf:RDF>
-  </metadata>
-  <g
-     inkscape:label="Layer 1"
-     inkscape:groupmode="layer"
-     id="layer1"
-     transform="translate(0,-852.36218)">
-    <rect
-       style="fill:#ffffff;fill-opacity:0.98431373000000000;stroke:#000000;stroke-width:0;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
-       id="rect3785"
-       width="180"
-       height="200"
-       x="862.36218"
-       y="-200"
-       transform="matrix(0,1,-1,0,0,0)" />
-  </g>
-</svg>
--- a/source/svg/tiles/common/snake/snake-corner-tl.svg	Tue Sep 13 21:32:38 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,122 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
-   xmlns:cc="http://creativecommons.org/ns#"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:svg="http://www.w3.org/2000/svg"
-   xmlns="http://www.w3.org/2000/svg"
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   width="200"
-   height="200"
-   id="svg2"
-   version="1.1"
-   inkscape:version="0.48.1 r9760"
-   sodipodi:docname="snake-corner-tl.svg">
-  <defs
-     id="defs4">
-    <linearGradient
-       id="linearGradient3765">
-      <stop
-         style="stop-color:#0000ff;stop-opacity:1;"
-         offset="0"
-         id="stop3781" />
-      <stop
-         id="stop3783"
-         offset="0.5"
-         style="stop-color:#0000ff;stop-opacity:0;" />
-      <stop
-         id="stop3769"
-         offset="1"
-         style="stop-color:#0000ff;stop-opacity:1;" />
-    </linearGradient>
-  </defs>
-  <sodipodi:namedview
-     id="base"
-     pagecolor="#ffffff"
-     bordercolor="#666666"
-     borderopacity="1.0"
-     inkscape:pageopacity="0.0"
-     inkscape:pageshadow="2"
-     inkscape:zoom="22.627417"
-     inkscape:cx="10.794527"
-     inkscape:cy="11.948282"
-     inkscape:document-units="px"
-     inkscape:current-layer="layer1"
-     showgrid="false"
-     inkscape:window-width="1172"
-     inkscape:window-height="752"
-     inkscape:window-x="108"
-     inkscape:window-y="0"
-     inkscape:window-maximized="1"
-     showguides="true"
-     inkscape:guide-bbox="true">
-    <sodipodi:guide
-       orientation="1,0"
-       position="190,208.85727"
-       id="guide3880" />
-    <sodipodi:guide
-       orientation="1,0"
-       position="10,105.31732"
-       id="guide3882" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="148.54202,190"
-       id="guide3884" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="-9.6054889,10"
-       id="guide3886" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="70,100.426"
-       id="guide3931" />
-    <sodipodi:guide
-       orientation="1,0"
-       position="100,146.51544"
-       id="guide3933" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="190,-0.091"
-       id="guide3935" />
-    <sodipodi:guide
-       orientation="1,0"
-       position="195,6.9384853"
-       id="guide3937" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="195,4.994"
-       id="guide3939" />
-    <sodipodi:guide
-       orientation="1,0"
-       position="200,-1.6351844"
-       id="guide4328" />
-  </sodipodi:namedview>
-  <metadata
-     id="metadata7">
-    <rdf:RDF>
-      <cc:Work
-         rdf:about="">
-        <dc:format>image/svg+xml</dc:format>
-        <dc:type
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
-        <dc:title />
-      </cc:Work>
-    </rdf:RDF>
-  </metadata>
-  <g
-     inkscape:label="Layer 1"
-     inkscape:groupmode="layer"
-     id="layer1"
-     transform="translate(0,-852.36218)">
-    <path
-       style="fill:#ffffff;fill-opacity:0.98431373000000000;stroke:#000000;stroke-width:0;stroke-miterlimit:4.59999990000000025;stroke-opacity:1;stroke-dasharray:none"
-       d="m 10,200.091 180,0 C 190,195.006 195,190 200,190 L 200,10 C 100,10 10,99.38375 10,200.091 z"
-       transform="translate(0,852.36218)"
-       id="rect3785"
-       inkscape:connector-curvature="0"
-       sodipodi:nodetypes="ccccc" />
-  </g>
-</svg>
--- a/source/svg/tiles/common/snake/snake-head-eye-r.svg	Tue Sep 13 21:32:38 2011 +0200
+++ b/source/svg/tiles/common/snake/snake-head-eye-r.svg	Tue Sep 13 22:39:37 2011 +0200
@@ -14,7 +14,7 @@
    id="svg2"
    version="1.1"
    inkscape:version="0.48.1 r9760"
-   sodipodi:docname="snake-head-r.svg">
+   sodipodi:docname="snake-head-tongue-r.svg">
   <defs
      id="defs4">
     <linearGradient
@@ -41,8 +41,8 @@
      inkscape:pageopacity="0.0"
      inkscape:pageshadow="2"
      inkscape:zoom="2.915"
-     inkscape:cx="95.893071"
-     inkscape:cy="86.277873"
+     inkscape:cx="60.891938"
+     inkscape:cy="100"
      inkscape:document-units="px"
      inkscape:current-layer="layer1"
      showgrid="false"
@@ -55,24 +55,8 @@
      inkscape:guide-bbox="true">
     <sodipodi:guide
        orientation="0,1"
-       position="200,180"
-       id="guide4133" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="200,20"
-       id="guide4135" />
-    <sodipodi:guide
-       orientation="1,0"
-       position="100,180"
-       id="guide4137" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="100,190"
-       id="guide4139" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="100,10"
-       id="guide4141" />
+       position="0,190"
+       id="guide3074" />
   </sodipodi:namedview>
   <metadata
      id="metadata7">
@@ -93,7 +77,7 @@
      transform="translate(0,-852.36218)">
     <g
        id="g4657"
-       transform="translate(-14.751287,3.0874786)">
+       transform="matrix(0.79999996,0,0,0.79999996,-7.5128653,191.63886)">
       <path
          transform="matrix(1.0485612,0,0,1.313063,-25.50008,835.13844)"
          d="m 147.16981,88.164665 c 0,21.030395 -21.34903,38.078905 -47.68439,38.078905 -26.335362,0 -47.684391,-17.04851 -47.684391,-38.078905 0,-21.030397 21.349029,-38.078903 47.684391,-38.078903 26.33536,0 47.68439,17.048506 47.68439,38.078903 z"
--- a/source/svg/tiles/common/snake/snake-head-mouth-open-r.svg	Tue Sep 13 21:32:38 2011 +0200
+++ b/source/svg/tiles/common/snake/snake-head-mouth-open-r.svg	Tue Sep 13 22:39:37 2011 +0200
@@ -41,8 +41,8 @@
      inkscape:pageopacity="0.0"
      inkscape:pageshadow="2"
      inkscape:zoom="2.915"
-     inkscape:cx="118.1197"
-     inkscape:cy="100.49353"
+     inkscape:cx="100"
+     inkscape:cy="100"
      inkscape:document-units="px"
      inkscape:current-layer="layer1"
      showgrid="false"
@@ -54,37 +54,13 @@
      showguides="true"
      inkscape:guide-bbox="true">
     <sodipodi:guide
-       orientation="0,1"
-       position="200,180"
-       id="guide4133" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="200,20"
-       id="guide4135" />
-    <sodipodi:guide
        orientation="1,0"
-       position="100,180"
-       id="guide4137" />
+       position="100,0"
+       id="guide4744" />
     <sodipodi:guide
        orientation="0,1"
-       position="100,190"
-       id="guide4139" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="100,10"
-       id="guide4141" />
-    <sodipodi:guide
-       orientation="1,0"
-       position="180,0"
-       id="guide3058" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="0,150"
-       id="guide3060" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="0,50"
-       id="guide3062" />
+       position="0,190"
+       id="guide3074" />
   </sodipodi:namedview>
   <metadata
      id="metadata7">
@@ -104,11 +80,16 @@
      id="layer1"
      transform="translate(0,-852.36218)">
     <path
-       transform="matrix(0,1,-1,0,0,0)"
-       style="fill:#ffffff;fill-opacity:0.98431373000000000;stroke:#000000;stroke-width:0;stroke-miterlimit:4;stroke-opacity:1"
-       d="M 1003.1245,-180.00754 C 1042.3622,-180 1042.3622,-72.935297 1042.3622,0 L 862.36218,0 c 0,-72.927655 0,-180 40,-180 0,80 100.00002,80 100.00002,0 z"
-       id="rect3785"
-       inkscape:connector-curvature="0"
-       sodipodi:nodetypes="cccccc" />
+       sodipodi:type="arc"
+       style="fill:#ffffff;fill-opacity:1;stroke:none"
+       id="path4181"
+       sodipodi:cx="111.66381"
+       sodipodi:cy="113.89365"
+       sodipodi:rx="66.037735"
+       sodipodi:ry="62.778732"
+       d="m 177.70155,113.89365 c 0,34.67173 -29.56611,62.77873 -66.03774,62.77873 -36.471633,0 -66.037734,-28.107 -66.037734,-62.77873 0,-34.67174 29.566101,-62.778736 66.037734,-62.778736 0.0285,0 0.0571,1.8e-5 0.0856,5.3e-5 l -0.0856,62.778683 z"
+       transform="matrix(0.96368557,0.96368557,-1.0137129,1.0137129,107.84665,729.29792)"
+       sodipodi:start="0"
+       sodipodi:end="4.7136853" />
   </g>
 </svg>
--- a/source/svg/tiles/common/snake/snake-head-r.svg	Tue Sep 13 21:32:38 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
-   xmlns:cc="http://creativecommons.org/ns#"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:svg="http://www.w3.org/2000/svg"
-   xmlns="http://www.w3.org/2000/svg"
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   width="200"
-   height="200"
-   id="svg2"
-   version="1.1"
-   inkscape:version="0.48.1 r9760"
-   sodipodi:docname="snake-head-r.svg">
-  <defs
-     id="defs4">
-    <linearGradient
-       id="linearGradient3765">
-      <stop
-         style="stop-color:#0000ff;stop-opacity:1;"
-         offset="0"
-         id="stop3781" />
-      <stop
-         id="stop3783"
-         offset="0.5"
-         style="stop-color:#0000ff;stop-opacity:0;" />
-      <stop
-         id="stop3769"
-         offset="1"
-         style="stop-color:#0000ff;stop-opacity:1;" />
-    </linearGradient>
-  </defs>
-  <sodipodi:namedview
-     id="base"
-     pagecolor="#ffffff"
-     bordercolor="#666666"
-     borderopacity="1.0"
-     inkscape:pageopacity="0.0"
-     inkscape:pageshadow="2"
-     inkscape:zoom="2.915"
-     inkscape:cx="95.893071"
-     inkscape:cy="86.277873"
-     inkscape:document-units="px"
-     inkscape:current-layer="layer1"
-     showgrid="false"
-     inkscape:window-width="1172"
-     inkscape:window-height="752"
-     inkscape:window-x="108"
-     inkscape:window-y="0"
-     inkscape:window-maximized="1"
-     showguides="true"
-     inkscape:guide-bbox="true">
-    <sodipodi:guide
-       orientation="0,1"
-       position="200,180"
-       id="guide4133" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="200,20"
-       id="guide4135" />
-    <sodipodi:guide
-       orientation="1,0"
-       position="100,180"
-       id="guide4137" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="100,190"
-       id="guide4139" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="100,10"
-       id="guide4141" />
-  </sodipodi:namedview>
-  <metadata
-     id="metadata7">
-    <rdf:RDF>
-      <cc:Work
-         rdf:about="">
-        <dc:format>image/svg+xml</dc:format>
-        <dc:type
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
-        <dc:title />
-      </cc:Work>
-    </rdf:RDF>
-  </metadata>
-  <g
-     inkscape:label="Layer 1"
-     inkscape:groupmode="layer"
-     id="layer1"
-     transform="translate(0,-852.36218)">
-    <path
-       transform="matrix(0,1,-1,0,0,0)"
-       style="fill:#ffffff;fill-opacity:0.98431373000000000;stroke:#000000;stroke-width:0;stroke-miterlimit:4;stroke-opacity:1"
-       d="m 952.36219,-200 c 80.00001,0 90.00001,100 90.00001,200 L 862.36218,0 c 0,-100 10,-200 90.00001,-200 z"
-       id="rect3785"
-       inkscape:connector-curvature="0"
-       sodipodi:nodetypes="cccc" />
-  </g>
-</svg>
--- a/source/svg/tiles/common/snake/snake-head-tongue-r.svg	Tue Sep 13 21:32:38 2011 +0200
+++ b/source/svg/tiles/common/snake/snake-head-tongue-r.svg	Tue Sep 13 22:39:37 2011 +0200
@@ -14,7 +14,7 @@
    id="svg2"
    version="1.1"
    inkscape:version="0.48.1 r9760"
-   sodipodi:docname="snake-head-tongue-r.svg">
+   sodipodi:docname="snake-head-mouth-open-r.svg">
   <defs
      id="defs4">
     <linearGradient
@@ -40,9 +40,9 @@
      borderopacity="1.0"
      inkscape:pageopacity="0.0"
      inkscape:pageshadow="2"
-     inkscape:zoom="2.915"
-     inkscape:cx="118.1197"
-     inkscape:cy="100.49353"
+     inkscape:zoom="5.08"
+     inkscape:cx="100"
+     inkscape:cy="131.03976"
      inkscape:document-units="px"
      inkscape:current-layer="layer1"
      showgrid="false"
@@ -55,36 +55,8 @@
      inkscape:guide-bbox="true">
     <sodipodi:guide
        orientation="0,1"
-       position="200,180"
-       id="guide4133" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="200,20"
-       id="guide4135" />
-    <sodipodi:guide
-       orientation="1,0"
-       position="100,180"
-       id="guide4137" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="100,190"
-       id="guide4139" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="100,10"
-       id="guide4141" />
-    <sodipodi:guide
-       orientation="1,0"
-       position="180,0"
-       id="guide3058" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="0,150"
-       id="guide3060" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="0,50"
-       id="guide3062" />
+       position="0,190"
+       id="guide3074" />
   </sodipodi:namedview>
   <metadata
      id="metadata7">
@@ -94,7 +66,7 @@
         <dc:format>image/svg+xml</dc:format>
         <dc:type
            rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
-        <dc:title />
+        <dc:title></dc:title>
       </cc:Work>
     </rdf:RDF>
   </metadata>
@@ -106,7 +78,7 @@
     <path
        inkscape:connector-curvature="0"
        style="fill:#d40000;fill-opacity:1;stroke:none"
-       d="m 193.16878,932.58267 c -35.28881,10.9989 -60.34621,10.61476 -72.21875,9.40625 -1.63259,7.22698 -1.52957,14.74911 0.3125,21.9375 12.40197,-2.46946 38.27046,-6.22711 71.90625,10.5 -15.48038,-18.62366 -27.34375,-22.625 -27.34375,-22.625 0,0 10.53414,-1.64375 27.34375,-19.21875 z"
+       d="m 172.24929,931.45614 c -26.71858,8.32771 -47.57513,10.10908 -61.28124,9.96875 l -10.96875,10.9375 9,9 c 14.03263,-1.73771 36.11532,-1.55659 63.24999,11.9375 -15.48038,-18.62366 -27.34375,-22.625 -27.34375,-22.625 0,0 10.53414,-1.64375 27.34375,-19.21875 z"
        id="path3116" />
   </g>
 </svg>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/source/svg/tiles/common/snake/snake-head.svg	Tue Sep 13 22:39:37 2011 +0200
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="200"
+   height="200"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.48.1 r9760"
+   sodipodi:docname="snake-head-mouth-open-r.svg">
+  <defs
+     id="defs4">
+    <linearGradient
+       id="linearGradient3765">
+      <stop
+         style="stop-color:#0000ff;stop-opacity:1;"
+         offset="0"
+         id="stop3781" />
+      <stop
+         id="stop3783"
+         offset="0.5"
+         style="stop-color:#0000ff;stop-opacity:0;" />
+      <stop
+         id="stop3769"
+         offset="1"
+         style="stop-color:#0000ff;stop-opacity:1;" />
+    </linearGradient>
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="2.915"
+     inkscape:cx="100"
+     inkscape:cy="100"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1172"
+     inkscape:window-height="752"
+     inkscape:window-x="108"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     showguides="true"
+     inkscape:guide-bbox="true">
+    <sodipodi:guide
+       orientation="1,0"
+       position="100,0"
+       id="guide4744" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="0,190"
+       id="guide3074" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-852.36218)">
+    <path
+       sodipodi:type="arc"
+       style="fill:#ffffff;fill-opacity:1;stroke:none"
+       id="path4181"
+       sodipodi:cx="111.66381"
+       sodipodi:cy="113.89365"
+       sodipodi:rx="66.037735"
+       sodipodi:ry="62.778732"
+       d="m 177.70155,113.89365 c 0,34.67173 -29.56611,62.77873 -66.03774,62.77873 -36.471633,0 -66.037734,-28.107 -66.037734,-62.77873 0,-34.67174 29.566101,-62.778736 66.037734,-62.778736 36.47163,0 66.03774,28.106996 66.03774,62.778736 z"
+       transform="matrix(1.3628572,0,0,1.4336065,-52.181828,789.08351)" />
+  </g>
+</svg>
--- a/source/svg/tiles/common/snake/snake-tail-r.svg	Tue Sep 13 21:32:38 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
-   xmlns:cc="http://creativecommons.org/ns#"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:svg="http://www.w3.org/2000/svg"
-   xmlns="http://www.w3.org/2000/svg"
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   width="200"
-   height="200"
-   id="svg2"
-   version="1.1"
-   inkscape:version="0.48.1 r9760"
-   sodipodi:docname="snake-tail-r.svg">
-  <defs
-     id="defs4">
-    <linearGradient
-       id="linearGradient3765">
-      <stop
-         style="stop-color:#0000ff;stop-opacity:1;"
-         offset="0"
-         id="stop3781" />
-      <stop
-         id="stop3783"
-         offset="0.5"
-         style="stop-color:#0000ff;stop-opacity:0;" />
-      <stop
-         id="stop3769"
-         offset="1"
-         style="stop-color:#0000ff;stop-opacity:1;" />
-    </linearGradient>
-  </defs>
-  <sodipodi:namedview
-     id="base"
-     pagecolor="#ffffff"
-     bordercolor="#666666"
-     borderopacity="1.0"
-     inkscape:pageopacity="0.0"
-     inkscape:pageshadow="2"
-     inkscape:zoom="2.915"
-     inkscape:cx="42.71012"
-     inkscape:cy="100"
-     inkscape:document-units="px"
-     inkscape:current-layer="layer1"
-     showgrid="false"
-     inkscape:window-width="1172"
-     inkscape:window-height="752"
-     inkscape:window-x="108"
-     inkscape:window-y="0"
-     inkscape:window-maximized="1"
-     showguides="true"
-     inkscape:guide-bbox="true">
-    <sodipodi:guide
-       orientation="1,0"
-       position="10,75.814751"
-       id="guide4028" />
-    <sodipodi:guide
-       orientation="1,0"
-       position="190,85.763293"
-       id="guide4030" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="211.32075,100"
-       id="guide4032" />
-    <sodipodi:guide
-       orientation="0,1"
-       position="10,50"
-       id="guide4034" />
-  </sodipodi:namedview>
-  <metadata
-     id="metadata7">
-    <rdf:RDF>
-      <cc:Work
-         rdf:about="">
-        <dc:format>image/svg+xml</dc:format>
-        <dc:type
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
-        <dc:title />
-      </cc:Work>
-    </rdf:RDF>
-  </metadata>
-  <g
-     inkscape:label="Layer 1"
-     inkscape:groupmode="layer"
-     id="layer1"
-     transform="translate(0,-852.36218)">
-    <path
-       style="fill:#ffffff;fill-opacity:0.98431373000000000;stroke:#000000;stroke-width:0;stroke-miterlimit:4;stroke-opacity:1"
-       d="m 200.00001,1042.3622 0,-180.00001 c -99.99999,0 -150.000012,0 -200.0000124999999,90.00001 50.0000004999999,90 100.0000224999999,90 200.0000124999999,90 z"
-       id="rect3785"
-       inkscape:connector-curvature="0"
-       sodipodi:nodetypes="cccc" />
-  </g>
-</svg>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/source/svg/tiles/common/snake/snake-tail.svg	Tue Sep 13 22:39:37 2011 +0200
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="200"
+   height="200"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.48.1 r9760"
+   sodipodi:docname="snake-tail-r.svg">
+  <defs
+     id="defs4">
+    <linearGradient
+       id="linearGradient3765">
+      <stop
+         style="stop-color:#0000ff;stop-opacity:1;"
+         offset="0"
+         id="stop3781" />
+      <stop
+         id="stop3783"
+         offset="0.5"
+         style="stop-color:#0000ff;stop-opacity:0;" />
+      <stop
+         id="stop3769"
+         offset="1"
+         style="stop-color:#0000ff;stop-opacity:1;" />
+    </linearGradient>
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="2.915"
+     inkscape:cx="93.223749"
+     inkscape:cy="113.72213"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1172"
+     inkscape:window-height="752"
+     inkscape:window-x="108"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     showguides="true"
+     inkscape:guide-bbox="true">
+    <sodipodi:guide
+       orientation="1,0"
+       position="10,75.814751"
+       id="guide4028" />
+    <sodipodi:guide
+       orientation="1,0"
+       position="190,85.763293"
+       id="guide4030" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="211.32075,100"
+       id="guide4032" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="10,50"
+       id="guide4034" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-852.36218)">
+    <path
+       sodipodi:type="arc"
+       style="fill:#ffffff;fill-opacity:1;stroke:none"
+       id="path4160"
+       sodipodi:cx="102.22984"
+       sodipodi:cy="105.48885"
+       sodipodi:rx="62.092625"
+       sodipodi:ry="57.461407"
+       d="m 164.32247,105.48885 a 62.092625,57.461407 0 1 1 -124.185252,0 62.092625,57.461407 0 1 1 124.185252,0 z"
+       transform="matrix(0.80524861,0,0,0.87014925,17.679561,860.57113)" />
+  </g>
+</svg>